Reuse Excel VBA without importing it

狂风中的少年 提交于 2020-01-03 04:27:47

问题


I created a new macro by recoding my actions. It is used to delete columns from an excel file. If I have to run this macro on excel file that I download from the web, I have to import the macro in visual basic and then run it.

Can I somehow make this macro available to excel so I can run it to all the excel files that I download from a site, without importing the macro in visual basic first?


回答1:


You can save macros to your personal workbook: http://excelhints.com/2010/11/29/how-to-use-your-personal-macro-workbook/

Macros saved in this way are available to other workbooks.



来源:https://stackoverflow.com/questions/4810092/reuse-excel-vba-without-importing-it

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