![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello, can anyone tell me how I can get a custom toolbar to open ONLY with a specific workbook? I don't want the workbook to remain open when I open the normal template.
Your help is greatly appreciated! Thank you@ |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You require two macros... one that triggers automatically when the workbook is opened and another that is run automatically on closing the workbook.
Note that the macro names Auto_Open and Auto_Close are predefined within Excel to run on the open and close events. Sub Auto_Open() Application.CommandBars("ToolBarName").Visible = True End Sub Sub Auto_Close() Application.CommandBars("ToolBarName").Visible = False End Sub |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|