ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Menu Dissapeared (https://www.excelbanter.com/excel-programming/282081-excel-menu-dissapeared.html)

dan

Excel Menu Dissapeared
 
I lost my main menu and only have my toolbars left
visible. I created a custom menu items but I did it in
VBA so I can just re-run the macro. I just need to get
the default menu back.

I lost it by running this:

Sub test()
Set myMenuBar = CommandBars.ActiveMenuBar
With myMenuBar.Enabled = False
End With
End Sub

I tried to change Enabled to True but it didn't work.
I'm on Excel XP. Thanks.

Tom Ogilvy

Excel Menu Dissapeared
 
CommandBars("Worksheet Menu Bar").Enabled = True

--
Regards,
Tom Ogilvy


"dan" wrote in message
...
I lost my main menu and only have my toolbars left
visible. I created a custom menu items but I did it in
VBA so I can just re-run the macro. I just need to get
the default menu back.

I lost it by running this:

Sub test()
Set myMenuBar = CommandBars.ActiveMenuBar
With myMenuBar.Enabled = False
End With
End Sub

I tried to change Enabled to True but it didn't work.
I'm on Excel XP. Thanks.




dan

Excel Menu Dissapeared
 
Right on worked in a second, Thanks alot!

-----Original Message-----
CommandBars("Worksheet Menu Bar").Enabled = True

--
Regards,
Tom Ogilvy


"dan" wrote in

message
...
I lost my main menu and only have my toolbars left
visible. I created a custom menu items but I did it in
VBA so I can just re-run the macro. I just need to get
the default menu back.

I lost it by running this:

Sub test()
Set myMenuBar = CommandBars.ActiveMenuBar
With myMenuBar.Enabled = False
End With
End Sub

I tried to change Enabled to True but it didn't work.
I'm on Excel XP. Thanks.



.



All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com