# How tp Execute macro with parameter

**URL:** <https://forum.uipath.com/t/how-tp-execute-macro-with-parameter/53612>\
**Category:** Help\
**Tags:** excel, activities\
**Created:** [July 24, 2018, 10:00am UTC](https://forum.uipath.com/t/how-tp-execute-macro-with-parameter/53612 "2018-07-24T10:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony\_lst](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@tony\_lst](https://forum.uipath.com/u/tony_lst)\
**Post date:** [July 24, 2018, 10:00am UTC](https://forum.uipath.com/t/how-tp-execute-macro-with-parameter/53612/1 "2018-07-24T10:00:15Z")

</div>

hi everyone, I am trying to execute macro with parameter, could anyone please give me a sample how to use input macro parameters?

 ![Capture](https://global.discourse-cdn.com/uipath/original/3X/4/c/4c895c59777ef367f729fd15e1c448a5a63c05e1.JPG)

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [July 24, 2018, 10:10am UTC](https://forum.uipath.com/t/how-tp-execute-macro-with-parameter/53612/2 "2018-07-24T10:10:45Z")

</div>

Like that should work:  
`{""+exampleVariable+""}`

---

<div class="post-metadata">

**Author:** ![sharathraju489](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sharathraju489/32/9047_2.png) [@sharathraju489](https://forum.uipath.com/u/sharathraju489)\
**Post date:** [November 28, 2019, 12:49pm UTC](https://forum.uipath.com/t/how-tp-execute-macro-with-parameter/53612/3 "2019-11-28T12:49:07Z")

</div>

Hey

Here is a detailed article on that 🙂

> **[How To Execute Macro – In UiPath](https://excelcult.com/how-to-execute-macro-in-uipath/)**
>
> To automate few excel tasks, we might sometimes consider macros during our RPA implementation. let’s see how to execute a macro through UiPath…!!! Example Implementation using UiPath : …
