Hiding the Worksheet Menu Bar

michaeldh

Board Regular
Joined
Jun 11, 2002
Messages
201
Guys,

I was hoping you might have the answer to this issue I am having with a spreadsheet.

The creator has used some VBA to hide the Worksheet Menu bar upon the opening of the spreadsheet. That is "File" "Edit: "View" etc etc has been removed. When I go into customise Toolbars the Menu item for Worksheet Menu Bar has gone.

I have been through all areas of the code but cannot locate it. How do you hide this tool bar? How can you make these tool bars disappear from the Customise Toolbar options under the Toolbars Tab? Normally you can go in there and reset them etc etc

I would really appreciate your help with this.

Thanks.

Michael.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
See if this does it for you:
Code:
Sub EnableCommandBars()
    With Application.CommandBars("File").Controls
        .Item("New...").Enabled = True
        .Item("Open...").Enabled = True
        .Item("Save As...").Enabled = True
        .Item("Save as Web Page...").Enabled = True
        .Item("Save Workspace...").Enabled = True
        .Item("Print Area").Enabled = True
        .Item("Send To").Enabled = True
        .Item("Properties").Enabled = True
    End With
        
    With CommandBars("Worksheet Menu Bar")
        .Controls("Edit").Enabled = True
        .Controls("Edit").Visible = True
        .Controls("View").Enabled = True
        .Controls("View").Visible = True
        .Controls("Insert").Enabled = True
        .Controls("Insert").Visible = True
        .Controls("Format").Enabled = True
        .Controls("Format").Visible = True
        .Controls("Tools").Enabled = True
        .Controls("Tools").Visible = True
        .Controls("Data").Enabled = True
        .Controls("Data").Visible = True
        .Controls("Tools").Enabled = True
        .Controls("Tools").Visible = True
        .Controls("Window").Enabled = True
        .Controls("Window").Visible = True
        .Controls("Help").Enabled = True
        .Controls("Help").Visible = True
    End With
End Sub
HTH,

Smitty
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top