ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is is possible to disable certain menu items (https://www.excelbanter.com/excel-programming/317327-possible-disable-certain-menu-items.html)

Buster

Is is possible to disable certain menu items
 
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?



Bob Phillips[_6_]

Is is possible to disable certain menu items
 
Yes.Set the Enabled property to False

Application.Commandbars.FindControl(Id:=30007).Ena bled=False

--

HTH

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


"Buster" wrote in message
...
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?






All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com