hi Gurus
I try to set worksheet menu bar invisible in excel. I write the code like this:
Application.Commandbars("Worksheet Menu Bar"
.Visible = False
in the Workbook_Open() VBA project. it doesn't work.
every time it show a error message:
Run_time error'-2147467259(80004005)':
Method 'Visible' of object 'CommandBar' failed
but if I try
Application.Commandbars("Standard"
.Visible = False
or any other command bar, it works very well. it looks like only "Worksheet Menu Bar" doesn't work like this way.
is there anyone know why?
I try to set worksheet menu bar invisible in excel. I write the code like this:
Application.Commandbars("Worksheet Menu Bar"
in the Workbook_Open() VBA project. it doesn't work.
every time it show a error message:
Run_time error'-2147467259(80004005)':
Method 'Visible' of object 'CommandBar' failed
but if I try
Application.Commandbars("Standard"
or any other command bar, it works very well. it looks like only "Worksheet Menu Bar" doesn't work like this way.
is there anyone know why?