Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Custom Menu Item specific to a workbook

Hey guys,
I discovered an old macro at work. It looks like the macro was written as a worksheet, b/c I get the message that macros are now edited in the VBE. When this workbook is opened, a custom menu item(which is assigned to run the macro)appears under 'Tools'. I looked at the code and it only shows code for the macro - nothing about a custom menu item.

How is this menu item being opened? Can I do this with some of my other macros? I know I can put a custom menu item, but it stays there all the time, and it is only on my computer.

Thanks,
TT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Custom Menu Item specific to a workbook

Tommy

In versions prior to Excel 97 there was the Menu Editor which allowed you to
make custom menu items specific to that workbook.

Sounds like this is your case.

This feature was taken out starting with Excel 97.

You can now create menu items for each workbook "on the fly" by using code to
build the items when the workbook opens or is activated and deleted upon the
reverse.

For more on this see

http://support.microsoft.com/support.../Q159/6/19.asp

http://support.microsoft.com/default...EN-US;Q166755&

For info on "attaching" toolbars to a workbook see

http://www.microsoft.com/exceldev/articles/toolbatt.htm

Gord Dibben Excel MVP

On Fri, 23 Jan 2004 09:51:07 -0800, "Tommy T"
wrote:

Hey guys,
I discovered an old macro at work. It looks like the macro was written as a worksheet, b/c I get the message that macros are now edited in the VBE. When this workbook is opened, a custom menu item(which is assigned to run the macro)appears under 'Tools'. I looked at the code and it only shows code for the macro - nothing about a custom menu item.

How is this menu item being opened? Can I do this with some of my other macros? I know I can put a custom menu item, but it stays there all the time, and it is only on my computer.

Thanks,
TT


Reply
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
keep new menu item with workbook Andy G. Excel Discussion (Misc queries) 1 May 16th 06 08:09 PM
Excel 2000 Custom Menu Item Larry Bird Excel Discussion (Misc queries) 0 November 8th 05 08:25 PM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Testing to see if a Workbook menu item exists Todd Huttenstine[_3_] Excel Programming 2 December 31st 03 12:02 AM
Autoload custom menu on Workbook Open Johann[_2_] Excel Programming 1 December 30th 03 07:55 AM


All times are GMT +1. The time now is 05:59 PM.

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

About Us

"It's about Microsoft Excel"