Disable Option from tools in Menu bar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there visual basic that will allow me to disable "options" under "tools"
from the menu bar?
 
Just wondering....if I wanted to place a command button on sheet1 to restore
the options menu item is this possible? I tried this:

Private Sub OptOn_Click()

Application.CommandBars("Worksheet Menu Bar").FindControl _
(ID:=522, Recursive:=True).Enabled = True

End Sub


But nothing happens.
 
Use

ActiveCell.Activate
Application.CommandBars("Worksheet Menu Bar").FindControl _
(ID:=522, Recursive:=True).Enabled = True
 

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