sherriwatkins
New Member
- Joined
- Jun 10, 2015
- Messages
- 10
Hi,
I have written code to hide the ribbon when opening a workbook. The problem I have is two fold...
1. When you open the workbook the first time, it works like a charm, but if you close the file and reopen it, the ribbon doesn't hide like it should.
2. Even though the code is written in one workbook, it is hiding the ribbon on other workbooks that I open later.
Here is my code:
Sub Workbook_Open()
Application.CommandBars.ExecuteMso "HideRibbon"
MsgBox ("Click arrow in top right corner to see Ribbon Bar and select Show Tabs and Commands.")
End Sub
What am I doing wrong??
Thanks in advance for your help!
I have written code to hide the ribbon when opening a workbook. The problem I have is two fold...
1. When you open the workbook the first time, it works like a charm, but if you close the file and reopen it, the ribbon doesn't hide like it should.
2. Even though the code is written in one workbook, it is hiding the ribbon on other workbooks that I open later.
Here is my code:
Sub Workbook_Open()
Application.CommandBars.ExecuteMso "HideRibbon"
MsgBox ("Click arrow in top right corner to see Ribbon Bar and select Show Tabs and Commands.")
End Sub
What am I doing wrong??
Thanks in advance for your help!