我制作了一个 Outlook 宏。我如何部署它以在其他机器上使用它?
我是否遵循在我的机器上执行的相同步骤“工具”->“宏”->“创建新项目”,还是有其他方法可以像我们处理 vb 或 C# 项目一样进行部署?
最佳答案
不,您不需要遵循相同的步骤并从头开始重新录制整个宏。您可以保存包含宏的模块并将其导入到另一台计算机上的 Outlook 中。
在 Outlook 的 VBA 编辑器中,右键单击您的模块 > 导出文件...
然后在另一台计算机上的 Outlook 的 VBA 编辑器中,右键单击您的项目 > 导入文件...
编辑您说您的 Outlook 没有 VB 编辑器。引用 Outlook 帮助:
you may be running a Microsoft Office program with the Visual Basic for Applications (VBA) shared feature disabled.
我不知道您的 Outlook 版本是 2003:
To re-enable VBA, follow these steps:
1.Run the Office Setup program again. How? Quit all programs.Double-click the Add/Remove Programs icon in the Microsoft Windows Control Panel.Do one of the following: If you installed your Office program as part of Microsoft Office, click Microsoft Office in the Currently installed programs box, and then click the Change button.If you installed your Office program individually, click the name of your program in the Currently installed programs box, and then click the Change button.
2.On the Features to install screen in the Setup program, click the plus sign (+) next to Office Shared Features.
3.Select Visual Basic for Applications, click the arrow next to your selection, and then click Run from My Computer.
关于vba - 如何部署 Outlook 宏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6465267/