|
-
Dec 8th, 2005, 09:43 PM
#1
Thread Starter
New Member
Printing MSWord Documents from VBA
I have generated some MSWord documents, and know how to print them from my VBA code, but I would like to be able to set certain print options automatically for certain documents, such as printing in full duplex (my printer can print to both sides) and specifying which pages to print. How do I do these in VBA code, and is there a guide somewhere that lists all the available printer commands?
-
Dec 8th, 2005, 09:48 PM
#2
Re: Printing MSWord Documents from VBA
Here you go:
Printer Constants
I found these, and saved them.
-
Dec 8th, 2005, 10:08 PM
#3
Thread Starter
New Member
Re: Printing MSWord Documents from VBA
Thanks dglienna! That list had the constant for duplex printing. I'll try it tomorrow and let you know how it works.
Now if I could only figure out how to print specific pages...?
-
Dec 9th, 2005, 08:10 AM
#4
Re: Printing MSWord Documents from VBA
Moved to Office Development.
-
Dec 9th, 2005, 08:37 PM
#5
Thread Starter
New Member
Re: Printing MSWord Documents from VBA
How would I specific printer constants? I tried this:
Me.Printer.Duplex = acPRDPHorizontal
WordObj.PrintOut
But it didn't come out full duplex.
-
Dec 9th, 2005, 08:49 PM
#6
Re: Printing MSWord Documents from VBA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|