Close Active Document

J

Josie

Using OLE automation for Word & access 2002, from access I am opening a
datasource for merging into a word document. Would like the user to be able
to set the following attributes for that document at run time :

wdDoNotSAveChanges to true or false
if true prompt for file name


any suggestions & codesample on how to achieve this would ge greatly
appreciated


josie
 
J

Jean-Guy Marcil

Josie was telling us:
Josie nous racontait que :
Using OLE automation for Word & access 2002, from access I am opening
a datasource for merging into a word document. Would like the user to
be able to set the following attributes for that document at run time
:
wdDoNotSAveChanges to true or false
if true prompt for file name


any suggestions & codesample on how to achieve this would ge greatly
appreciated

When you are done with the document, pop up a MsgBox asking the user if he
wants to save the document, if not, close without saving, if so, display the
Save As dialog.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

Josie

Jean-Guy

Thanks for your suggestion - would you be able to give me an example of the
required code

josie
 
J

Jean-Guy Marcil

Josie was telling us:
Josie nous racontait que :
Jean-Guy

Thanks for your suggestion - would you be able to give me an example
of the required code

This is really very simple. If you can handle OLE automation for Word &
Access 2002 from Access you can handle this easily.
In the Word VIBE, look up Dialogs and MsgBox in the online help. Or, just
type Dialogs in the code pane, select it and hit F1.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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