• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need a table Header Row to show current page # of total pages

Community Beginner ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

FM, unstructured, 2019. Created a table on body page that has a header row that includes a block that needs to show the current page # & the total page # in a cell. Is there any way to add a variable on the text page that will show the current page number in the cell when additional pages are added to the file? Also the page numbers in that block do not relate to the page numbering that shows in the footer of the document set up on the master page.

TOPICS
Formatting and numbering

Views

291

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 17, 2020 Aug 17, 2020

I am confused by the description of the issue and have the same question as Bob Niland. 

If you are trying to add a variable with the number of table sheets, you can click inside a table header cell or a table title and choose Table > Insert Table Variables, and choose Table Sheet (Sheet number of total count).

If you are trying to insert the actual document page number, click inside the table cell and open the Variables panel, select Page Count. Then click the edit button and change it to somet

...

Votes

Translate

Translate
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

Is this the total page # in the local table, or in the document to that point?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2020 Aug 18, 2020

Copy link to clipboard

Copied

Thank you. I was able to solve the problem using the Table Sheet variable.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

I am confused by the description of the issue and have the same question as Bob Niland. 

If you are trying to add a variable with the number of table sheets, you can click inside a table header cell or a table title and choose Table > Insert Table Variables, and choose Table Sheet (Sheet number of total count).

If you are trying to insert the actual document page number, click inside the table cell and open the Variables panel, select Page Count. Then click the edit button and change it to something similar to this:

image.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2020 Aug 18, 2020

Copy link to clipboard

Copied

A little experimentation yesterday showed that the <$lastpagenum> variable returns the value of the last page number of the file or, if it is in a multi-file book, the value of the total number of pages UP TO THAT FILE.

 

If your document is only one file long it will, of course, return the value you're looking for, but if you have a multi-file book, it may not, depending on which file your table is in. For example, if your table is in the 4th file of a 5 file book with continuous page numbering and each file has, say, 10 pages in it, <$lastpagenum> will return the value of 40, not 50. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2020 Aug 18, 2020

Copy link to clipboard

Copied

Thank you so much for all your help. I wasn't familiar with the Table Sheet variable and that is exactly what I needed. I just edited the variable to take out the work "Sheet" and it is the solution.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 18, 2020 Aug 18, 2020

Copy link to clipboard

Copied

LATEST

Thank you for your help. The Table Sheet variable was the solution. I was just not familiar with it before.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines