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!

Obtaining absolute page number in macro.

Status
Not open for further replies.

MarkButler

Programmer
Feb 22, 2001
83
US
I have a macro I am creating which needs to convert page numbers contained in the Table of Contents (TOC) as "2.5" where "2" is the chapter and "5" is the page within the chapter. If I go to page 2.5 in the manual and get the page number using the command "?Page()" I get "5". Is there a way to get the page number relative to the beginning of the document? Currently I am starting at the top of the document and counting the number of pages until I get to the correct chapter (?ChapterNumber) and adding the page number to it. Is there a better way?
 
You may find it useful to use ?SecondaryPageNumber() instead of ?Page().

-Best
Dave Braze
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top