Using Word VBA how do I print Back-to-front.

J

JohnNSmith

Using Word VBA, how do I get a document to print from Back to Front and
conversely, from front to back.
 
D

Doug Robbins - Word MVP

Do you mean that you want to print the pages in reverse order or that you
want to print double sided. Note that printing from front to back is the
default method and can be achieved by using the command

ActiveDocument.PrintOut

The following code should print the pages in reverse order:

Dim i As Long
Dim prtstr As String
With ActiveDocument
ptrstr = Format(.BuiltInDocumentProperties(wdPropertyPages))
For i = .BuiltInDocumentProperties(wdPropertyPages) - 1 To 1 Step -1
ptrstr = ptrstr & ", " & i
Next i
.PrintOut Pages:=ptrstr
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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

Top