No save for Word Document

G

Guest

How can I exit a Word Document with out saving it, after a Mail merge for
Access Table.
Below is the VB Code used to open the merge document is Word. How can
modify this code for a "No Save."

WordDoc.SaveAs FileName:=strSaveDir & strNewName, _
FileFormat:=0, _
LockComments:=False, Password:="", AddToRecentFiles:=False,
WritePassword:="", _
ReadOnlyRecommended:=True, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:=False
 
J

John McGhie [MVP - Word and Word Macintosh]

WordDoc.Close SaveChanges:=wdDoNotSaveChanges

How can I exit a Word Document with out saving it, after a Mail merge for
Access Table.
Below is the VB Code used to open the merge document is Word. How can
modify this code for a "No Save."

WordDoc.SaveAs FileName:=strSaveDir & strNewName, _
FileFormat:=0, _
LockComments:=False, Password:="", AddToRecentFiles:=False,
WritePassword:="", _
ReadOnlyRecommended:=True, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:=False

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410
 

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