Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro in mail-merge word file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've written an automatic mail-merge macro with the following input when opening the document:

Private Sub Documant_open()
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.Execute
End With
Application.Quit
End Sub

It work perfectly, except that after merging it comes up with the printer options and then before closing a save prompt. How can I stop this? I've tried to find code to operate the return key, I've tried recording a macro instead (but it didn't work as well)... PLEASE HELP!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top