I have used the command ActiveDocument.Close but
how do you disable the Window Prompt which asks you if
you wish to save the document prior to closing it.
PS you'll need to switch DisplayAlerts back on once your code has finished: use [tt]Applciation.DisplayAlerts = wdAlertsAll[/tt]
If you don't, Word will not show any propts until you close & reopen the app
[tt]ActiveDocument.Close False[/tt] will close the doc without saving
Alternatively, add PHV's line to your code just before the [tt]ActiveDocument.Save[/tt] bit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.