Disable 'Add or Remove buttons' functionality on a toolbar

G

Guy Van der Sande

Hello everybody,

I would like to disable the functionality to customize the
excel environment. Now the only thing I'm not able to
disable is the small arrow on the right of each toolbar
that enables you to add or remove buttons.
Does anyone has any ideas ?
Thanks,

Guy Van der Sande
 
B

Bob Umlas

Don't think you can do that...
However, you can disable its functionality via:
Sub fixTBs()
On Error Resume Next
For Each x In CommandBars
x.Protection = msoBarNoCustomize
Next
End Sub

Now, even tho there's access to adding buttons, you'll see that nothing
works!

When done, try this:
Sub fixTBs()
On Error Resume Next
For Each x In CommandBars
x.Protection = msoBarNoProtection
Next
End Sub

Bob Umlas
Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top