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

Re: Using Word VBA how do I print Back-to-front. by Doug

Doug
Mon Sep 17 14:55:19 CDT 2007

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

"JohnNSmith" <JohnNSmith@discussions.microsoft.com> wrote in message
news:DA3AFAD4-9273-43E0-805A-6F6279A39CDC@microsoft.com...
> Using Word VBA, how do I get a document to print from Back to Front and
> conversely, from front to back.



Re: Using Word VBA how do I print Back-to-front. by JohnNSmith

JohnNSmith
Mon Sep 24 13:26:00 CDT 2007

Doug, Many thanks to you. Your information solved my problem.

"Doug Robbins - Word MVP" wrote:

> 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
>
> "JohnNSmith" <JohnNSmith@discussions.microsoft.com> wrote in message
> news:DA3AFAD4-9273-43E0-805A-6F6279A39CDC@microsoft.com...
> > Using Word VBA, how do I get a document to print from Back to Front and
> > conversely, from front to back.
>
>
>