To run a macro from the Studio or the Robot the following points should be considered and configured:
- If the VBA code is embedded inside the excel sheet then the exact Module name and Procedure name should be mentioned inside "Run Macro' AC.
- Don't forget to save the excel file with .xlsm extension or change its extension from .xlsx to .xlsm.
- The Wizard should contain AC "Set user interaction" as Ignore, because the code that macro is executing will be considered as an external user actions for the Studio or Robot and it will pause the wizard.
Attached you will find a sample macro enabled excel file and the wizard. Adjust the new excel file in the wizard and run to test it.