Hello Rajath,
I totally agree with john.
Also it can possible that without writing a code stage, still you can achieve the output using macro only.
As per your problem statement, it seems that you have created macro with extension XLSB. As XLSB macro code is available with each and every Excel instance that you open so it may take time to load the file, though XLSB is the faster than any other excel extension.
The solution is like -
Create the xlsm file and copy paste the macro code. The macro's main function/sub modify in such a way that it will accept the input parameter as filename(Path of file) which will hold the values passed from BP.
Inside the macro, open the file and continue with your macro operation and finally save the opened file.
Here, with this approach, you need to write minimal code. You can duplicate ""Run Macro"" Action in MS EXCEL VBO and modify the newly created action, add start parameter to the action and add start parameter to the code stage.
Go to Code tab and modify the below line:
Lets consider the start parameter would be ""FilePath"" then the code should be as below
GetInstance(Handle).Run(Macro_Name,FilePath)
That's it.
Thank you.
Regards,
Vijay Rudrappa Dodamani