How to auto hide ribbon but only for a specific workbook and only for one worksheet in that workbook when workbook opens?
When I use the below code is working as expected and hide the ribbon but when I open another excel files the ribbon in the files is also hidden.
Private Sub Workbook_Open()
Application.CommandBars.ExecuteMso "HideRibbon"
End Sub