redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Hi all,
I recorded this simple macro to hide certain toolbars and placed it into the This Workbook part of vb
question is, on workbook close I want them all to be shown again thus leaving excel view 'normal'
I thought by changing the =False values to =True would work
but when the workbook is closed and a normal empty MS Excel workbook is opened, all the previously hidden toolbars still are.
Any ideas how to show the hidden toolbars again on closing my workbook|?
thanks
I recorded this simple macro to hide certain toolbars and placed it into the This Workbook part of vb
Code:
Private Sub workbook_open()
Application.CommandBars("Standard").Visible = False
Application.CommandBars("Formatting").Visible = False
Application.CommandBars("Drawing").Visible = False
data.Show
End Sub
question is, on workbook close I want them all to be shown again thus leaving excel view 'normal'
I thought by changing the =False values to =True would work
Code:
Private Sub workbook_close()
Application.CommandBars("Standard").Visible = True
Application.CommandBars("Formatting").Visible = True
Application.CommandBars("Drawing").Visible = True
End Sub
but when the workbook is closed and a normal empty MS Excel workbook is opened, all the previously hidden toolbars still are.
Any ideas how to show the hidden toolbars again on closing my workbook|?
thanks