DocumentAfterSave

D

David R

In Word when you press the SaveAs button, an event DocumentBeforeSave
is available. Does anybody knows how to get a similar event (or
simulate one), but after the action, something that could be called
DocumentAfterSave. Thanks, David
 
C

Cindy M -WordMVP-

Hi David,
In Word when you press the SaveAs button, an event DocumentBeforeSave
is available. Does anybody knows how to get a similar event (or
simulate one), but after the action, something that could be called
DocumentAfterSave
As long as you're working in the Word application environment, you'd
name a procedure FileSave (and probably another named FileSaveAs to
catch calling the dialog box). You'd then have Word execute its normal
functions (by saving the document or SHOWing the dialog box), and
following that code, the code you want to have run after the save has
taken place.

For other cases, I'd say use the DocumentBeforeSave event, but set
Cancel to True. Then your code can control saving, and what happens
after.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
D

David R

Hi Cindy,

I am working in COM/C++, so the second choice is easier to use. I
tried it before, but I haven't paid attention that Cancel is a VT_BOOL
| VT_BYREF and not just a VT_BOOL. Now everything is fine.
Thanks, David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top