how to get the page number programmingly?

C

caoli

hi:
Which method shall i use to retrieve the page number of
the existing word document? i need both total page number
and current page number of the document.
best wishes
caoli
 
M

martinique

Total pages is available as a builtin document property. (NumPages)

Not sure what you mean by the current page number of the document. You can
get the page of the current selection or any range using the Information()
function.
 
Top