VBA control over the ribbon?

江枫思渺然 提交于 2019-12-18 17:34:06

问题


I am in the process of creating a VBA add-in for Excel 2010, and I used the "Custom UI Editor for Microsoft Office" tool to create my own ribbon. However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible.

With menus, I know you can completely control them programmatically, but ribbons seem to work differently.

Is there a way in VBA to not load my customUI.xml ribbon tabs on startup?
Is there a way to remove items from (or add items to) these tabs at runtime?


回答1:


here is a whole slew of help on this subject Awesome Ribbon Help. I think points 2 and 3 are of particular interest to you.



来源:https://stackoverflow.com/questions/12005621/vba-control-over-the-ribbon

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