Custom Menu visible to one document in Excel

2019-08-23 10:33发布

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条回答
乱世女痞
2楼-- · 2019-08-23 11:03

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.

查看更多
登录 后发表回答