I have a working module that does some data transformation that I want to run on any excel sheet simply by running a vbscript.
It should work like:
1) Run vbscript, 2) choose excel file, 3) data is transformed into another sheet, 4) save and quit.
I have everything working besides the most important step, step 3. However the code is there, it's a working module but I have to import it and run it from the workbook for each workbook that comes in. I do not want to do this, it's too cumbersome for this project.
Is there a simpler way to do this than reprogram every module to work in VBScript? And if I have to rework the solution in VBScript, are there any good excel VBScript tutorials out there? I've done some research and can't find anything with the depth I need.
EDIT:
This Solution is not a solution to my problem. This assumes the module is imported into the excel sheet already. If I use this, I get the error:
Cannot run the macro 'filename.Module1.macro' The macro may not be available in this workbook or all macros may be disabled
This is because the macro is not added to the workbook, as I stated above I want to run the macro without having to add it to each workbook I run this on. Or if there's a way to script the adding of the macro and then running it, that will work too.