Close quit

C

Curt

Trying to have when print finishes have word close completely so it will
return to a user form that called it. Print dialog window comes up. Is it
possible to have print happen completely then close and not save changes.
Here is what I've tried. Novice as I am need help. This is part of the macro
at the end.
Thanks

With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.Destination = wdSendToPrinter
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = False
With .datasource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=True
End With
ActiveWindow.Close
ActiveDocument.printoutbackground = False
ActiveDocument.Close wdDoNotSaveChanges
activedcoument.Close
wd.Application.Quit
setwd = Nothing
 

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

Similar Threads


Top