Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Trapping Microsoft Word Closing (Office 2003)

    Can anyone help .... please?

    I need to identify where I can trap the application closing within VBA. I have tried AutoClose but no joy, not too sure whether I need to set up a class ... am stumbling around in the dark, so any help would be greatly appreciated.

    Cheers
    Jack

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Trapping Microsoft Word Closing (Office 2003)

    If you want to execute some code when Word quits, put a macro named AutoExit in a module in your Normal.dot (AutoClose is for closing a document, not the entire application).

    You could also create an event handler for the Quit event of the Application object; this is more complicated. Look up the Quit event of the Application object in the Word VBA help, and see <post:=117,390>post 117,390</post:>.

  3. #3
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Trapping Microsoft Word Closing (Office 2003)

    Many thanks Hans.

Posting Permissions

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