Hi Jim,
I think you use the "Information" property (Applies to either a Range or Selection object).
e.g.
Selection.Information(wdActiveEndPageNumber)
* Code Example
#DEFINE wdActiveEndPageNumber 3
LOCAL loWord, loDocument, lnPageNo
loWord = CREATEOBJECT("word.application")
loDocument = loWord.Open("Mydoc.doc")
* your own code to get wherever you are within the document
lnPageNumber = loDocument.Range.Information(wdActiveEndPageNumber)
* End code example
Seems to work for me anyway, hoep this helps.
Regards,
Ben
Ben Sugden
"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes