Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have successfully created macros on the Menu Bar, however the buttons stay resident for all excel files. I know it is possible to create the macro buttons to only be loaded when the appropriate file is opened. The buttons should disappear when the file is closed. Does anyone know how to do this? If so, please share. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keda,
You're looking for the Temporary parameter, which prevents Excel being stuck with it. You can have the Auto_Close procedure destroy the toolbar too. Const cCommandBar = "MyCommandBar" Dim bar As CommandBar For Each bar In Application.CommandBars If bar.Name = cCommandBar Then bar.Delete Next I have an example for Commandbars he http://www.vangelder.co.nz/excel/index.html Rob "Keda Wang" wrote in message ... Hello, I have successfully created macros on the Menu Bar, however the buttons stay resident for all excel files. I know it is possible to create the macro buttons to only be loaded when the appropriate file is opened. The buttons should disappear when the file is closed. Does anyone know how to do this? If so, please share. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Buttons | Excel Discussion (Misc queries) | |||
Macro buttons opening saved macro | Excel Discussion (Misc queries) | |||
Macro Buttons | Excel Worksheet Functions | |||
Macro Buttons | Excel Discussion (Misc queries) | |||
look for buttons in a macro | Excel Discussion (Misc queries) |