Re: copies

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The page numbers in the Pages string are the "adjusted" page numbers
that take into account any restarting of numbering in various
sections. If you have section breaks and numbering restarts, you need
to use the p1s1 sort of syntax (see
http://www.word.mvps.org/FAQs/Formatting/PrintMultipleSections.htm).

If there are no section breaks, so the whole document is one section
that starts on page 1, then your description of what you want would
require the string

.Pages = "1,2,2,2,3,3,3,4,4,5,5"

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Thu, 4 Jan 2007 19:43:00 -0800, MoJR
<MoJR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello,
I currently use the following code to print pages in a document.

"ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True

With Dialogs(wdDialogFilePrint)
.Background = False
.Range = wdPrintRangeOfPages
.Pages = "0,1,2,2,3,3,3,4,4,4,5"
.Execute
"End With
It works very well. I copied the entire macro this code belongs to into
another document. I tried to alter the .Pages= property(?) to print the pages
I needed in the other document. It prints 1 copy of each page. I need
multiple copies of each page.
The documet consists of a letter and 4 other pages. I need 1 copy of the
letter, 3 copies of pages 2&3, and 2copies of pages 4&5.
How can I alter the code to accomodate my needs?
Thank you,
mojr
.



Relevant Pages

  • Re: Can lines collection be used to assist me in automatically numbering lines?
    ... > asks about line numbering inside VBA procedures? ... typed or returns a variant would help you with some of the confusion ... Many think that NZ in SQL returns a string. ...
    (comp.databases.ms-access)
  • Re: Page Numbering restarts when inserting a Page break next page
    ... default is for the section headers to be linked and the numbering to ... I am unsure how you have achieved the default of restarting page ... numbering, but try starting in Word's safe mode (hold the CTRL key whilst ... Place your cursor in the Header of the landscape page, ...
    (microsoft.public.word.docmanagement)
  • Re: ATI graphics card driver
    ... > Restarting X should normally suffice. ... >> string' should not be Mesa if the driver is correctly installed. ... The hardware settings are correct; ... $ grep fglrx /etc/X11/xorg.conf ...
    (Fedora)
  • Re: Numbered list problem
    ... In article, Dave Bulman ... >> I found a simple workaround for restarting numbering in a particular ... I even recorded a macro to do that to my most frequently used numbered ...
    (microsoft.public.mac.office.word)
  • Re: Wrong numbers in numbered lists
    ... Well, the Restart Numbering command should work, with the limitations ... The last two restarting techniques described in your link are ...
    (microsoft.public.word.docmanagement)