UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2026年4月16日

运行演示文稿宏

UiPath.Presentations.Activities.RunMacro

在启用宏的演示文稿中运行指定宏。此活动必须添加到使用 PowerPoint 演示文稿活动中。

The argument of the macro is determined by the Macro Argument activity, which is added in the Run Presentation Macro container when you click Add Macro Argument in the body of the activity. Multiple macro arguments can be added.

属性

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
  • 宏名称- 要运行的宏的名称。或者,在 StudioX 中,单击右侧的“加号” ,然后从菜单中选择一个选项以确定宏名称:

    • Presentation - Use a value from a presentation file.
    • Notebook - Use the value from a Notebook (such as data from a cell).
    • “运行时询问”- 执行项目时提示输入名称。
    • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
    • “文本”- 在文本生成器中输入名称。
    • Open in Advanced Editor - Enter a VB expression.
  • 演示文稿- 要在其中输入数据表的演示文稿。在 StudioX 中,单击字段右侧的加号,然后选择要在其中插入数据表的演示文稿文件。或者,您也可以输入 VB 表达式。

其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • “返回值” - 保存宏返回值(如有)。在 StudioX 中,单击右侧的加号,然后从菜单中选择一个选项以确定如何保存值:

    • Notebook - Saves the value in a Notebook (such as data inside a cell).
    • Copy to clipboard - Saves the returned value to clipboard.
    • PowerPoint - Saves the returned value inside a presentation.
    • “已保存以备后用”- 提示您提供名称以保存值。之后可以更改名称。
    • Open in Advanced Editor - Enter a VB expression.
  • 属性

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新