# Macro Executor

**URL:** <https://forum.uipath.com/t/macro-executor/172139>\
**Category:** Help\
**Tags:** question, excel, activities\
**Created:** [November 27, 2019, 4:30pm UTC](https://forum.uipath.com/t/macro-executor/172139 "2019-11-27T16:30:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![monish06](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@monish06](https://forum.uipath.com/u/monish06)\
**Post date:** [November 27, 2019, 4:30pm UTC](https://forum.uipath.com/t/macro-executor/172139/1 "2019-11-27T16:30:50Z")

</div>

Hi,  
Is there any official macro Executor activities. I am having requirement to perform macro actions in Excel.

---

<div class="post-metadata">

**Author:** ![lakshman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lakshman/32/523490_2.png) [@lakshman](https://forum.uipath.com/u/lakshman)\
**Post date:** [November 27, 2019, 4:33pm UTC](https://forum.uipath.com/t/macro-executor/172139/2 "2019-11-27T16:33:03Z")

</div>

@monish06

You can use **Invoke VBA** activity to run macro on Excel file.

> **[Invoke VBA](https://docs.uipath.com/activities/docs/invoke-vba)**
>
> UiPath.Excel.Activities.InvokeVBA Invokes a macro from an external file containing VBA code and runs it against an Excel file. This activity can run macros on any type of Excel file, such as .xls and .xlsx. Can only be used in the Excel Application...

---

<div class="post-metadata">

**Author:** ![J0ska](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/j0ska/32/111328_2.png) [@J0ska](https://forum.uipath.com/u/J0ska)\
**Post date:** [November 27, 2019, 4:36pm UTC](https://forum.uipath.com/t/macro-executor/172139/3 "2019-11-27T16:36:25Z")

</div>

or **Execute Macro** activity

> **[Execute Macro](https://docs.uipath.com/activities/docs/execute-macro)**
>
> UiPath.Excel.Activities.ExecuteMacro Execute the macro within a workbook. The Workbook file needs to be a Macro-Enabled Workbook. Changes are immediately saved. Can only be used in the Excel Application Scope or Use Excel File activities. Properties...

---

<div class="post-metadata">

**Author:** ![J0ska](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/j0ska/32/111328_2.png) [@J0ska](https://forum.uipath.com/u/J0ska)\
**Post date:** [November 27, 2019, 4:42pm UTC](https://forum.uipath.com/t/macro-executor/172139/4 "2019-11-27T16:42:06Z")

</div>

BTW @monish06 - there is “Search” function in forum and it could give you answer to many your questions instantly 😉

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 30, 2019, 4:42pm UTC](https://forum.uipath.com/t/macro-executor/172139/5 "2019-11-30T16:42:09Z")

</div>

Closed on November 30, 2019, 4:42pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
