M
Marvin Hlavac
I have a code that hides Menu Bar:
Private Sub Workbook_WindowActivate(ByVal Wn As Window)
Application.CommandBars("Worksheet Menu Bar").Enabled = False
End Sub
However, one little inconvenience is that once I open a worksheet with this
code and close it, all other workbooks I open after that will have no Menu
Bar either. I have to open again the workbook that contains the code and
change the "False" to "True". Is there a way that it would be done
automatically before I close the workbook that contains the code so I don't
have to do it manually every time I need Menu bar on some other workbook?
Thanks in advance.
Private Sub Workbook_WindowActivate(ByVal Wn As Window)
Application.CommandBars("Worksheet Menu Bar").Enabled = False
End Sub
However, one little inconvenience is that once I open a worksheet with this
code and close it, all other workbooks I open after that will have no Menu
Bar either. I have to open again the workbook that contains the code and
change the "False" to "True". Is there a way that it would be done
automatically before I close the workbook that contains the code so I don't
have to do it manually every time I need Menu bar on some other workbook?
Thanks in advance.