vba - 如何部署 Outlook 宏?

标签 vba outlook

我制作了一个 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/

相关文章:

excel - 如何在 Excel 中组合具有不同列名和列顺序的多个 CSV 文件?

excel - 刷新 Excel VBA 函数结果

excel - .Range ("...").Find 生成对象变量或未设置 block 变量

excel - VBA 刷新彭博数据未按正确顺序运行

vba - Excel VBA 字符串数组到 Outlook 电子邮件 "To"字段

vba - 使用当前打开的电子邮件

excel - 如何循环播放声音

google-chrome - 从 Outlook 拖动到 Chrome 会将电子邮件移动到“已删除”文件夹

html - 无法让这些元素在 Microsoft Outlook 中完美对齐且高度相同

hyperlink - Microsoft Outlook 超链接中的尾随等号被丢弃