How to disable (or remove) the “protect sheet” and “protect workbook” button in excel 2007 menu?

北城余情 提交于 2019-12-14 03:56:37

问题


I'm using VBA and I would like to disable the "protect sheet" and "protect workbook" button in excel 2007 menu.

How can I do that ?

Thanks in advance for any help. Best regards


回答1:


You cannot affect the ribbon using VBA without the "customUI xml mechanism". See Excel 2007: Ribbon customization - Disable custom buttons.

To learn more about RibbonX, you can read this MSDN article: Using RibbonX from Visual Basic.



来源:https://stackoverflow.com/questions/4689019/how-to-disable-or-remove-the-protect-sheet-and-protect-workbook-button-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!