问题
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