Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word ...returning active page number

Status
Not open for further replies.

ETID

Programmer
Jul 6, 2001
1,867
US
Can anyone tell me how to return the active page number in word via VBA?

something simple like ...

X=activepage.number

would have been great...but noooooooooooooooo (that would make too much sense) :)

thanks for any help
 
The current cursor (Selection) location is:

Selection.Information(wdActiveEndAdjustedPageNumber)

Note, if the Selection is a Range greater than 1 (ie. is is more than one character), the integer returned is the End of the range.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top