LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Persistent menu item with Excel Automation Add-in?

I've seen this addressed a number of times but have yet to see a
satisfying answer - how do we add a persistent Excel toolbar menu item
from a Automation Add-in?

I've built an Automation Add-in that also implements the optional
IDTExtensibility2 interface (in order to take advantage of start up
events). I create a menu item from the OnConnection() method. Here's
what happens:

1) Run Excel.
2) Begin to insert a formula. (OnConnection() doesn't fire until I
enter the first character after the equal sign (e.g., =A))
3) OnConnection runs and installs my menu item.
4) Menu item remains on the toolbar while Excel runs.
5) Save the spreadsheet, quit out of Excel.
6) Run Excel, open saved spreadsheet, menu item is gone...

I'm looking for my menu item to be persistent and to be displayed
either when I start Excel, or when I open a previously saved
spreadsheet from which the menu item had been installed.

What's the proper way to achive this behaviour? (FWIW, I'm using Excel
2003 and C#/.NET)

Thanks,
Steve

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating my own menu item in excel [email protected] Excel Discussion (Misc queries) 1 March 16th 09 04:09 AM
Adding a menu item to Excel Uzi Barzilai Excel Discussion (Misc queries) 1 January 14th 08 10:25 AM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM
How do I hide an Excel MENU item? Marcello do Guzman Excel Programming 1 December 11th 03 04:43 AM


All times are GMT +1. The time now is 08:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"