#1   Report Post  
Posted to microsoft.public.word.docmanagement
kill_beast[_2_] kill_beast[_2_] is offline
external usenet poster
 
Posts: 13
Default macro on exit or save?

Is there a way to get a macro to run upon exiting or saving a document?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default macro on exit or save?

On Thu, 21 Aug 2008 11:39:01 -0700, kill_beast
wrote:

Is there a way to get a macro to run upon exiting or saving a document?


See http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default macro on exit or save?

An AutoClose macro will run on closing the document. To run a macro when you
save it, you will have to intercept the FileSave and/or FileSaveAs command.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"kill_beast" wrote in message
...
Is there a way to get a macro to run upon exiting or saving a document?



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
kill_beast[_2_] kill_beast[_2_] is offline
external usenet poster
 
Posts: 13
Default macro on exit or save?

That did it. Thank you very much.

Mike


"Jay Freedman" wrote:

On Thu, 21 Aug 2008 11:39:01 -0700, kill_beast
wrote:

Is there a way to get a macro to run upon exiting or saving a document?


See http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit Macro | Dot Templates Arthi Microsoft Word Help 1 May 4th 07 02:42 PM
Form Fields Macro on exit problem Bruce P. Microsoft Word Help 1 April 19th 07 06:02 PM
How do I create an on-exit macro? KamiBell Microsoft Word Help 1 September 29th 05 09:24 PM
Run macro on Exit problem Leonard Microsoft Word Help 3 August 24th 05 10:29 PM
Macro to Print and Exit after Merge Karen Hart Mailmerge 2 February 11th 05 09:10 PM


All times are GMT +1. The time now is 02:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"