activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 18, 2024

Run Presentation Macro

UiPath.Presentations.Activities.RunMacro

Runs a specified macro in a macro-enabled presentation. This activity must be added inside a Use PowerPoint Presentation activity.

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.

Properties

Common
  • DisplayName - The name displayed for the activity in the Designer panel.
Input
  • Macro name - Name of the macro to run. Alternatively, in StudioX, click Plus on the right side of the field, and then select an option from the menu to determine the macro name:

    • Presentation - Use a value from a presentation file.
    • Notebook - Use the value from a Notebook (such as data from a cell).
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
    • Text - Enter the name in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Presentation - Presentation in which to enter the datatable. In StudioX, click Plus docs image on the right side of the field, and then select the presentation file where to insert the data table. Alternatively, you enter a VB expression.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
  • Returned value - Saves the value returned by the macro (if any). In StudioX, click Plus on the right side of the field, and then select an option from the menu to determine how to save the value:

    • 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.
    • Save for Later Use - Prompts to provide a name to save the value. The name can be changed afterwards.
    • Open in Advanced Editor - Enter a VB expression.
  • Properties

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.