Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Show Custom Toolbar on open
I am creating an excel template to be accessed by multiple users on a server.
I have created a custom toolbar with macro buttons and saved them to the workbook. I would like the toolbar to display when the new workbook is opened and hide when it is closed. Is this possible? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Show Custom Toolbar on open
Open the VBE (Alt+F11) and add an OnOpen and Before Close event:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("Your_ToolBar_Name_Here"). Visible = False End Sub Private Sub Workbook_Open() Application.CommandBars("Your_ToolBar_Name_Here"). Visible = True End Sub -- Kevin Backmann "NikkiB" wrote: I am creating an excel template to be accessed by multiple users on a server. I have created a custom toolbar with macro buttons and saved them to the workbook. I would like the toolbar to display when the new workbook is opened and hide when it is closed. Is this possible? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Show Custom Toolbar on open
Thank you so much. That was just what I needed.
"Kevin B" wrote: Open the VBE (Alt+F11) and add an OnOpen and Before Close event: Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("Your_ToolBar_Name_Here"). Visible = False End Sub Private Sub Workbook_Open() Application.CommandBars("Your_ToolBar_Name_Here"). Visible = True End Sub -- Kevin Backmann "NikkiB" wrote: I am creating an excel template to be accessed by multiple users on a server. I have created a custom toolbar with macro buttons and saved them to the workbook. I would like the toolbar to display when the new workbook is opened and hide when it is closed. Is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
custom toolbar item to use hyperlink to open word file | Excel Discussion (Misc queries) | |||
How can I copy a custom toolbar & put it on another pc? | Excel Worksheet Functions | |||
Loading custom toolbar | Excel Discussion (Misc queries) | |||
Keep custom toolbar settings - Help!! | Excel Discussion (Misc queries) | |||
custom toolbar w/ macro | Excel Discussion (Misc queries) |