本文介绍了Excel VBA宏“运行/打开"任何工作簿上的宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Excel中编写可在要打开的任何excel文档上运行(以快捷方式运行)的宏?
How can I write macro in Excel that will work (to run with shortcut) on any excel document which I will open?
这可能吗?
推荐答案
您需要将宏添加到Personal.xlsb,以使它们可用于所有excel文件.在录制宏"对话框中选择个人宏工作簿"以快速执行此操作.
You need to add your macros to Personal.xlsb in order to make them available to all the excel files. Choose Personal Macro Workbook in Record Macro dialog to do this quickly.
这篇关于Excel VBA宏“运行/打开"任何工作簿上的宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!