I need to know how to programmatically add a macro to a Word document. The macro is custom-generated for each document. Therefore, I cannot ask a user to manually add and run the macro each time a document is opened.
The macro needs to start upon document opening and will basically perform final processing on the document itself.
Consequently, I think I need, from another programming language, a way to merge a macro to an existing word document. Maybe another way would be to tell word to run an external macro, stored on the disk.
Is that feasible?