Current Page 
Author Message
 Current Page

Hi

pl can you give me the syntax for returning the current age number of a
document i.e. where the cursor is sitting

thanks

Tim



Sun, 27 Mar 2005 00:08:34 GMT  
 Current Page
Hi Tim,

Depending on your doucment, one of the two will do the trick:

MsgBox Selection.Information(wdActiveEndAdjustedPageNumber)
MsgBox Selection.Information(wdActiveEndPageNumber)

Have a look at the VBA help file for the differences.

HTH


Quote:
> Hi

> pl can you give me the syntax for returning the current age number of a
> document i.e. where the cursor is sitting

> thanks

> Tim



Sun, 27 Mar 2005 00:20:15 GMT  
 Current Page
Dave

thanks for prompt response - I'll try these out

regards

Tim



Sun, 27 Mar 2005 00:27:32 GMT  
 Current Page
Dave

have tried them out and they work fine.

is it possible to return the number of the displayed page i.e. when the
scroll bars have scrolled down but no selection has been made: put another
way, to return the page number of the first word at the top left of the
screen.

Thanks

Tim


Quote:
> Hi Tim,

> Depending on your doucment, one of the two will do the trick:

> MsgBox Selection.Information(wdActiveEndAdjustedPageNumber)
> MsgBox Selection.Information(wdActiveEndPageNumber)

> Have a look at the VBA help file for the differences.

> HTH



> > Hi

> > pl can you give me the syntax for returning the current age number of a
> > document i.e. where the cursor is sitting

> > thanks

> > Tim



Sun, 27 Mar 2005 02:11:08 GMT  
 Current Page
Hi Tim,

I don't think that there is.


Quote:
> Dave

> have tried them out and they work fine.

> is it possible to return the number of the displayed page i.e. when the
> scroll bars have scrolled down but no selection has been made: put another
> way, to return the page number of the first word at the top left of the
> screen.

> Thanks

> Tim



> > Hi Tim,

> > Depending on your doucment, one of the two will do the trick:

> > MsgBox Selection.Information(wdActiveEndAdjustedPageNumber)
> > MsgBox Selection.Information(wdActiveEndPageNumber)

> > Have a look at the VBA help file for the differences.

> > HTH



> > > Hi

> > > pl can you give me the syntax for returning the current age number of
a
> > > document i.e. where the cursor is sitting

> > > thanks

> > > Tim



Sun, 27 Mar 2005 02:39:11 GMT  
 Current Page
Dave

thanks for that

will try on the main vb ng as well - hope you won't be offended - as the
reason for wanting the first piece of syntax was to test it against this
piece as it were

regards

Tim

Quote:
> Hi Tim,

> I don't think that there is.



> > Dave

> > have tried them out and they work fine.

> > is it possible to return the number of the displayed page i.e. when the
> > scroll bars have scrolled down but no selection has been made: put
another
> > way, to return the page number of the first word at the top left of the
> > screen.

> > Thanks

> > Tim



> > > Hi Tim,

> > > Depending on your doucment, one of the two will do the trick:

> > > MsgBox Selection.Information(wdActiveEndAdjustedPageNumber)
> > > MsgBox Selection.Information(wdActiveEndPageNumber)

> > > Have a look at the VBA help file for the differences.

> > > HTH



> > > > Hi

> > > > pl can you give me the syntax for returning the current age number
of
> a
> > > > document i.e. where the cursor is sitting

> > > > thanks

> > > > Tim



Sun, 27 Mar 2005 05:12:23 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. How to initialize Range with current Page

2. Current Page Number in Word?

3. Current page

4. How to initialize Range object with Current page

5. Macro to Print current Page in WORD 97

6. current page number value?

7. How to return the current page number

8. Current Page Number

9. Detecting the current page number

10. Printing Current Page

11. reading current page number through vba?

12. Print current page - Word 97

 

 
Powered by phpBB® Forum Software