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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,357
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,181,820
Messages
5,932,255
Members
436,830
Latest member
Sochen

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