Disabling the Tools Menu

  • Thread starter Thread starter Rich Cooper
  • Start date Start date
R

Rich Cooper

I have a question regarding diabling the tools menus. I want to know is
there a way i can diable a use from clickon on tools and the menu won't show
up or if you can gray out certain or all the buttons? Any help is greatly
appreciated.
 
Hide the menu

Application.Commandbars("Worksheet Menu Bar").Controls("Tools").Visible
= False

to disable a particular sub-menu

Application.Commandbars("Worksheet Menu
Bar").Controls("Tools").Controls("Add-Ins...").enabled=false

-

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Or this

In Dutch Tools is Extra for example and Bob's code will not work

Sub a()
'disable Tools menu
Application.CommandBars(1).FindControl(, 30007).Enabled = False
End Sub

Sub b()
Application.CommandBars(1).FindControl(, 30007).Enabled = True
End Sub
 

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

Back
Top