Discussion Locked

Word Automation (VBA)

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Have the following statement.

wrd.quit

This closes my word docuemnt but the yes/no/cancel save dialog box always comes up. I don't want the end user to acciently click yes or cancel. Is there a way I can close the document through automation with out that box coming up?

8 replies

by kees.valkenswaard

There are three possibilities for SC:
Wrd.Quit SaveChanges:=
wdDoNotSaveChanges, wdPromptToSaveChanges or wdSaveChanges
Good luck

by kees.valkenswaard

There are three possibilities for SC:
Wrd.Quit SaveChanges:=
wdDoNotSaveChanges, wdPromptToSaveChanges or wdSaveChanges
Good luck

This discussion is closed to new replies.