|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
making a list of sections in MS Word and how many pages there are in each...
Hi,
It's important for me to keep a balance of each chapter in my thesis in terms of number of pages. I'm trying to find a way to make a list of sections in my Word document with the total number of pages of each section indicated next to them. Alternatively, a table of contents with the total number of pages of each level would also be fine (because the level 1 heading in TOC could show me the total number of pages, which is basically a section in my doc, as well as the sub levels). Any ideas please? |
#2
|
||||
|
||||
Word has a SECTIONPAGES field. If you put that into the header/footer of a given Section, that Section's page count will appear on every page.
In any event, if each Section starts with a Heading and your document has a Table of Contents (TOC), you should be able to calculate the # pages for each Section at a glance from the TOC. Anything fancier would require a macro and the figures returned would be static (i.e. they wouldn't auto-update as you edit. In any event, theses are usually expressed in word counts rather than page counts.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Many thanks for your prompt reply.
I was actually aware of the field, but was just looking for a way to make a list with sum of pages for each section, just like the table of contents. But I understand the only way is to go VB. I did some VB in the past. Do you happen to have an inspiring piece of code at hand? Thank you for your time. |
#4
|
|||
|
|||
You can bookmark page fields at the end of each section and put those in a summary page somewhere in your document. Is there a reason for restarting numbering for each section?
|
#5
|
|||
|
|||
Thank you for your suggestion, but I was looking for a way to identify how long each section (or the header in my TOC) is (as a matter of fact, I'm interested in how many pages each Chapter is basically). Otherwise, your suggestion could act like a TOC not depending on 'paragraph level's (and thanks for introducing bookmarks to me
I could just use a calculator and check with the TOC and do some calculations, but you don't know what your automation passion will lead you |
#6
|
|||
|
|||
Meanwhile, I've tried a VBA code with the following piece of code with no joy
.... For Each sect In doc.Sections ee = sect.Range.ComputeStatistics(Statistic:=wdStatisti cPages) .... |
#7
|
||||
|
||||
You could put a field coded along the lines of:
{SET Sctn# {SECTIONPAGES}} into each Section (e.g. in the header/footer - but only if they're not linked to the previous Sections), where # is the Section No., then insert cross-references to the Sctn# bookmarks wherever you want the output to appear. If the above field is inserted into the Section header/footer, a Print Preview should be sufficient to update it. Selecting your cross-references to the Sctn# bookmarks and pressing F9 would then update that, too. If it's somewhere in the body of the document, pressing Ctrl-A, F9 would update the lot. No VBA required. Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
Thank you!
That actually solved the problem. The {...} text becomes invisible once run, and works like a charm. Perfect! |
Tags |
pages, section, toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and list Blank pages in Word document. | ndandge | Word VBA | 4 | 11-29-2015 09:15 PM |
Mail merge in sections with address list | patrickpetersen | Mail Merge | 1 | 02-18-2015 10:57 PM |
Getting overview of Notebooks, Sections and pages | Asier Larretxea | OneNote | 0 | 06-07-2014 04:04 AM |
how to embed printing options to pages or sections | Coaster | Word | 0 | 07-30-2011 07:44 PM |
Pages sizes of sections | jwcane | Word | 1 | 06-15-2010 01:58 AM |