I was wondering is there’s a way to run macro in .xlsx file? I need to run macro with a different file everyday but using the same macro. I tried to save the macro in a notepad and save it as .vb file.
Using excel application scope activity and invoke vb script activity to run the macro.
When I run it nothing happen to the excel which btw if I run the macro in the same file using .xlsm file it works.
Example:
But my everyday file is in this format:
File1.xlsx
File2.xlsx
Macro code:
Macro.vb
Macro works only in this file using execute macro activity:
File1.xlsm
I’m sorry I miss this workflow that you have created and just check on the link that you gave and trying to understand it.
Today only I noticed it and I tried using your solution and it works.
I just save the macro in a txt file and invoke VBA. It works. Thank you so much @Pratik_Wavhal