Hello
How can I trigger a macro after a document is loaded?
I tried command line params but that doesn't work (runs the macro before the document is loaded)
Printable View
Hello
How can I trigger a macro after a document is loaded?
I tried command line params but that doesn't work (runs the macro before the document is loaded)
If the macro is contained with the document that you are opening then you can just call it from the Document_Open event procedure in the ThisDocument Object Module.
No, I'm afraid it's not. that's what makes it triky.
Actually, I am opening it thourgh javascript from a web page (intranet web application) and I launch word with command parameters to load an XML and an XSL style sheet, and what I need to do is hide the gridlines (as in table menu) and I couldn't find that setting in registry so I think I can only fix it with a macro to run after the document loads. However, I just can't find a way to trigger it ...