ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Lock Commandbars (https://www.excelbanter.com/excel-programming/307682-lock-commandbars.html)

Jean-pierre Hermans

Lock Commandbars
 
Hello,


Is it possible to lock a selfmade commandbar?
So that the users of my workbook cannot delete them!


Greetz.


Jim Cone

Lock Commandbars
 
Jean-pierre,

This may do the trick...
Set SelfMade = Application.CommandBars.Add(...
SelfMade.Protection = msoBarNoCustomize

This doesn't hurt either...
Application.CommandBars("Toolbar List").Enabled = False

Regards,
Jim Cone
San Francisco, CA

"Jean-pierre Hermans" wrote in message ...
Hello,


Is it possible to lock a selfmade commandbar?
So that the users of my workbook cannot delete them!
Greetz.



Jean-pierre Hermans

Lock Commandbars
 
Jim Cone wrote:

Lock Commandbars


Jim,

Thank you for the good tips.

Regards.


All times are GMT +1. The time now is 04:35 PM.

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