Pass Variables to Macro , need help!

Hi All,

So I have a macro which I open manually where I click on select folder button and pass the folder path, press enter. And then Run the macro. It generates the final output.

I would like to perform the same thing with Uipath Macro Command,

  1. Right now, I’m using excel scope automation to open the macro and then by using execute macro, it opens select folder path box.

  2. I don’t want to use the key stroke and enter the path, I would like to pass the variable in the macro code editor via using argument or any parameter option. So it does that in the background and Runs till the final output, without using keystrokes or any Ui based automation.

Please suggest , Screenshots attached !!


Anyone , please help ??