Custom Menu visible to one document in Excel

只谈情不闲聊 提交于 2019-12-24 18:23:16

问题


I have created customized menu and toolbar in MS Excel. I wanted to show this menu and toolbar to specific document only. When I open any other xls file, it shows that menu and toolbar.

MS Excel 2003

How to do that using vba-excel macro or any other way to do that?

If you need more information, please ask me.

Thanks :)


回答1:


OK - so this website will help you: http://www.ozgrid.com/VBA/custom-menus.htm

It actually works in Excel 2007 also, but adds the menu under the Add-Ins tab.

You basically need to access the code for ThisWorkbook in the VBA application. From there, you can modify the Application.CommandBars object to do what you need.



来源:https://stackoverflow.com/questions/4446184/custom-menu-visible-to-one-document-in-excel

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