Is is possible to disable certain menu items

  • Thread starter Thread starter Buster
  • Start date Start date
B

Buster

Is is possible to disable certain menu items using VBA so that when a
workbook is opened, the menu item is disabled until a password is entered?
 
Yes.Set the Enabled property to False

Application.Commandbars.FindControl(Id:=30007).Enabled=False

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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