Hallo everybody. I have a problem with a document. I need to know, in every
moment, the page number in wich I am, and the total number of pages of
document.
May you help me? I don't find anything!
Many thanks.



Re: Page number by Jezebel

Jezebel
Mon Mar 13 18:07:49 CST 2006

It's shown on the status bar at the bottom of screen.


"Gù" <guidoautelli@alice.it> wrote in message
news:4416044c$0$29721$4fafbaef@reader2.news.tin.it...
> Hallo everybody. I have a problem with a document. I need to know, in
> every moment, the page number in wich I am, and the total number of pages
> of document.
> May you help me? I don't find anything!
> Many thanks.
>
> Gù
>



Re: Page number by Tony

Tony
Mon Mar 13 18:59:21 CST 2006

Try these ...

Selection.Information(wdActiveEndPageNumber)
Selection.Information(wdNumberOfPagesInDocument)

--
Enjoy,
Tony

"Gù" <guidoautelli@alice.it> wrote in message
news:4416044c$0$29721$4fafbaef@reader2.news.tin.it...
> Hallo everybody. I have a problem with a document. I need to know, in
every
> moment, the page number in wich I am, and the total number of pages of
> document.
> May you help me? I don't find anything!
> Many thanks.
>
> Gù
>
>



Re: Page number by Gł


Wed Mar 15 14:55:33 CST 2006

I'll try immediately to use your code! Many thanks!!!




"Tony Jollans" <My Forename at My Surname dot com> ha scritto nel messaggio
news:%23s6zdKwRGHA.4952@TK2MSFTNGP09.phx.gbl...
> Try these ...
>
> Selection.Information(wdActiveEndPageNumber)
> Selection.Information(wdNumberOfPagesInDocument)
>
> --
> Enjoy,
> Tony
>
> "Gù" <guidoautelli@alice.it> wrote in message
> news:4416044c$0$29721$4fafbaef@reader2.news.tin.it...
>> Hallo everybody. I have a problem with a document. I need to know, in
> every
>> moment, the page number in wich I am, and the total number of pages of
>> document.
>> May you help me? I don't find anything!
>> Many thanks.
>>
>> Gù
>>
>>
>
>



Re: Page number by Gł


Wed Mar 15 17:50:38 CST 2006

Wonderful, now I have the datas I need. But now I have another problem: you
have ti know that i want do do a simple thing: I have two continuous
sections in the beginning of the documents, to change make the head of the
pages of the document different from the first one.
So, I'm trying do develop a code that, when an user writes, writes, writes
and... the document creates the second pages, the program knows that now the
page are two, and it runs a sub...
But the question is: how can I do to create the event which says "ok, now we
have an other page after the first"?

Thanks





Re: Page number by Tony

Tony
Thu Mar 16 07:02:25 CST 2006

You can't do that - Word just doesn't work that way.

But if what you want to do is just to have a different header on the first
page you do not need to have two sections or to check anything, Word will do
it all for you. Just check the box for "Different First Page" under Tools >
Page Setup > Layout tab - and then create your two different headers. You
will need to have two pages in the document to create the two headers but
you can delete the second page afterwards and the header will be remembered
for when the document really goes over a page.

--
Enjoy,
Tony

"Gù" <guidoautelli@alice.it> wrote in message
news:4418a857$0$29725$4fafbaef@reader2.news.tin.it...
> Wonderful, now I have the datas I need. But now I have another problem:
you
> have ti know that i want do do a simple thing: I have two continuous
> sections in the beginning of the documents, to change make the head of the
> pages of the document different from the first one.
> So, I'm trying do develop a code that, when an user writes, writes, writes
> and... the document creates the second pages, the program knows that now
the
> page are two, and it runs a sub...
> But the question is: how can I do to create the event which says "ok, now
we
> have an other page after the first"?
>
> Thanks
>
> Gù
>
>



Re: Page number by Gł


Thu Mar 16 18:01:17 CST 2006

Uhm... thank you very much! I'll try to do it!
The problem is that the second header is made by some datas available during
at the moment of the creation of the document: this is the reason for which
i need to use VBA instead a normal command button!
However now I try your method!
BYE, AND THANKS!





"Tony Jollans" <My Forename at My Surname dot com> ha scritto nel messaggio
news:ugy92nPSGHA.2088@TK2MSFTNGP14.phx.gbl...
> You can't do that - Word just doesn't work that way.
>
> But if what you want to do is just to have a different header on the first
> page you do not need to have two sections or to check anything, Word will
> do
> it all for you. Just check the box for "Different First Page" under Tools
> >
> Page Setup > Layout tab - and then create your two different headers. You
> will need to have two pages in the document to create the two headers but
> you can delete the second page afterwards and the header will be
> remembered
> for when the document really goes over a page.
>
> --
> Enjoy,
> Tony
>
> "Gù" <guidoautelli@alice.it> wrote in message
> news:4418a857$0$29725$4fafbaef@reader2.news.tin.it...
>> Wonderful, now I have the datas I need. But now I have another problem:
> you
>> have ti know that i want do do a simple thing: I have two continuous
>> sections in the beginning of the documents, to change make the head of
>> the
>> pages of the document different from the first one.
>> So, I'm trying do develop a code that, when an user writes, writes,
>> writes
>> and... the document creates the second pages, the program knows that now
> the
>> page are two, and it runs a sub...
>> But the question is: how can I do to create the event which says "ok, now
> we
>> have an other page after the first"?
>>
>> Thanks
>>
>> Gù
>>
>>
>
>