Toolbar/meu bar help

chead5

Active Member
Joined
Jun 7, 2004
Messages
356
Ok, I have created a system for another department in my company to use. It's all done except I need to remove the Tools --> Marco's command form the menu bar. I also need to remove a couple of the toolbar items too.
I have done this manually in the file, saved it then restored all my settings. After the restore, when I open the file again all the stuff I removed is back.

Can anyone help me remove the menu and tooar items just in this one file?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,318
Office Version
  1. 365
Platform
  1. Windows
I just recorded a macro when i removed the Tools menu and got the following code:
Code:
Application.CommandBars("Worksheet Menu Bar").Controls(6).Delete

You could try putting this (or something similar) in the Workbook open event.

And put something to restore the toolbar in the BeforeClose event.
Code:
Application.CommandBars("Worksheet Menu Bar").Reset
 

Forum statistics

Threads
1,147,846
Messages
5,743,520
Members
423,801
Latest member
paulj4177

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
Top