Running Microsoft Word Macros with RPE!
Hello!
Does anyone have any suggestions for root causing this? Does RPE not work for Microsoft Word document Macros?
3 answers
Hello Sean!
Thank you for your response.
Is there any trick tot he macro name in the field? Say my macro is called "makeRed" would that be all I need to type in the field? do I need to include the "( )" from the code?
Can you please confirm if macro executim was really done. You should see the following messages in console/log:
Starting Word ...
Loading document ...
Running macro ...
Saving document ...
Macro execution finished
If macro is not executed, we need to check for settings/configurations. (will give details subsequently).
If macro is executed, how RPE's Word output being saved as? Is it .docx? Note that docx is a macro free document. Please try saving output as .doc or docm.
Comments
Thank you for that, I actually did not know about the console view. So after running the console vie wit seems I should update the context and problem.
Context: I run an RPE spec that produces several various reports, pulling information from around JTS and then at the end combines all of the reports into one. So my output is anywhere from 1-50 reports and then the combination report.
Current Issue: It turns out, per the advice above, the RPE spec only generates one word document and runs the macro successfully once, and this occurs on the combined report document. So as things stand now, it does generate all the documents and the combination document, but the console seems to imply the combination document is the only document being generated, everything is just appearing by happenstance and that is why the macro isn't being run on each document.
I unfortunately, am not the author of the spec being used, so I will have to go dig into it a bit. Any high level advice for what I should be looking for for why RPE does not consider the other reports it is outputting as generated documents?
Thank you for your help with this!
Let me clarify on RPE spec producing several various reports. Do you mean multiple Word output files? If so, how it is achieved? Using Document Break element in the template or running document generation in batch mode?