Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset shortcut menu

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
hi all,

i've just written a macro and assigned it to an item to my (right click) shortcut menu. it works really well.

problem is, how do i initialize it when i open that specific workbook and how do i remove it when i close that workbook?

any ideas would be cool.
thanks!"!!!


e
 
Create the shortcut to the Open event for the workbook ([tt]ThisWorkbook, Workbook_Open()[/tt]) and remove it in the BeforeClose event ([tt]ThisWorkbook, WorkBook_BeforeClose()[/tt]).

Hope this helps,
CMP

Instant programmer, just add coffee.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top