Results 1 to 3 of 3

Thread: run word macro onload

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    2

    run word macro onload

    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)

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: run word macro onload

    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.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    2

    Re: run word macro onload

    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 ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width