i need to print from page 1 to page n
page n is te one in which i find text "Chapter 2"

as my selection is located at chapter 2 (page 7 for example, but not always
7!))
how can i use ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1",
To:=n ??

how can i know in vba the current page number?

i need to use this for printing from chpater 1 to last page of chapter 1
then same for chpater 2 and 3

tya

Re: prinitng selctions by Dave

Dave
Fri Jul 07 12:21:47 CDT 2006

Hi,

Are you printing "selections" or printing "sections"?

If you're printing sections, then you have a look at the article "How can I
print a range of pages that spans more than one section of a document" at
http://word.mvps.org/FAQs/General/index.htm

HTH,
Dave

"Paula Marcy" <puala@notspam.com> wrote in message
news:1horg.30758$zy5.609636@twister1.libero.it...
>i need to print from page 1 to page n
> page n is te one in which i find text "Chapter 2"
>
> as my selection is located at chapter 2 (page 7 for example, but not
> always 7!))
> how can i use ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1",
> To:=n ??
>
> how can i know in vba the current page number?
>
> i need to use this for printing from chpater 1 to last page of chapter 1
> then same for chpater 2 and 3
>
> tya
>