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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top