Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many thanks to you all - fyi I used the following referred from both
workbook_open and workbook_beforeclose. Sub HideBars(state) Dim cbar As CommandBar On Error Resume Next For Each cbar In Application.CommandBars If state = xlOn Then SaveSetting AppName:="myapp", section:="CommandBars", key:=cbar.Name, Setting:=cbar.Visible cbar.Visible = False Application.CommandBars("Worksheet Menu Bar").Enabled = False Else cbar.Visible = GetSetting(AppName:="myapp", section:="CommandBars", key:=cbar.Name) Application.CommandBars("Worksheet Menu Bar").Enabled = True End If Next On Error GoTo 0 End Sub "Sandy" wrote in message ... Excel 2003 & 2007. Is it possible to check for visible toolbars in the Workbook_Open event and have them all close. Then in the Workbook_BeforeClose event re-open the same toolbars? Sandy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide all toolbars/menu bar when open file | Excel Programming | |||
Theres no toolbars, no drop-down menus when I open Excel | Setting up and Configuration of Excel | |||
close (hide) toolbars | Excel Discussion (Misc queries) | |||
Enable toolbars at close | Excel Programming |