简体   繁体   中英

Excel VBA - Send MailMerge to the Printer

I want to expand on the functionality related to this question . Is there anyway to set it up to send the MailMerge to the printer rather than create a new file?

I suppose you could use the same code as listed in your link, but then add a line to print the resulting word doc. I'm not familiar with the word syntax, but this should work (or at least get you started).

Replace:

wd.Visible = True
wdocSource.Close SaveChanges:=False

With:

wd.Visible = True
wdocSource.print
wdocSource.Close SaveChanges:=False

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM