Use macro from an other excel file



Can we use a macro that we created in an excel file in an other one ?


Hi Amine,
you can use a “parameter” in the macro where you will specify the workbook where the macro should run. Then you can pass this parameter from UiPath (store it in some input cell and read it back into the macro). It is not the nicest solution but it will work :slight_smile:


Thx Jan I’ll try your suggestion.


Hello, Jan

It is an additional question.
I think that setting a parameter to the macro from the property on the right, how should I describe it?
I’m sorry, please tell me.


@jan Could you attach a sample?


Hi Guys, sorry i havent checked the forum for a while so i missed this post :slight_smile: You can find the proposed solution in the (21.7 KB)