Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2016, 01:09 AM
Murat Murat is offline making a list of sections in MS Word and how many pages there are in each... Windows 10 making a list of sections in MS Word and how many pages there are in each... Office 2013
Novice
making a list of sections in MS Word and how many pages there are in each...
 
Join Date: Feb 2016
Posts: 5
Murat is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 02-01-2016, 01:15 AM
macropod's Avatar
macropod macropod is offline making a list of sections in MS Word and how many pages there are in each... Windows 7 64bit making a list of sections in MS Word and how many pages there are in each... Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 02-01-2016, 07:22 AM
Murat Murat is offline making a list of sections in MS Word and how many pages there are in each... Windows 10 making a list of sections in MS Word and how many pages there are in each... Office 2013
Novice
making a list of sections in MS Word and how many pages there are in each...
 
Join Date: Feb 2016
Posts: 5
Murat is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 02-01-2016, 08:08 AM
Charles Kenyon Charles Kenyon is offline making a list of sections in MS Word and how many pages there are in each... Windows 8 making a list of sections in MS Word and how many pages there are in each... Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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?
Reply With Quote
  #5  
Old 02-01-2016, 10:11 AM
Murat Murat is offline making a list of sections in MS Word and how many pages there are in each... Windows 10 making a list of sections in MS Word and how many pages there are in each... Office 2013
Novice
making a list of sections in MS Word and how many pages there are in each...
 
Join Date: Feb 2016
Posts: 5
Murat is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 02-01-2016, 01:05 PM
Murat Murat is offline making a list of sections in MS Word and how many pages there are in each... Windows 10 making a list of sections in MS Word and how many pages there are in each... Office 2013
Novice
making a list of sections in MS Word and how many pages there are in each...
 
Join Date: Feb 2016
Posts: 5
Murat is on a distinguished road
Default

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)

....
Reply With Quote
  #7  
Old 02-01-2016, 02:58 PM
macropod's Avatar
macropod macropod is offline making a list of sections in MS Word and how many pages there are in each... Windows 7 64bit making a list of sections in MS Word and how many pages there are in each... Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #8  
Old 02-01-2016, 10:08 PM
Murat Murat is offline making a list of sections in MS Word and how many pages there are in each... Windows 10 making a list of sections in MS Word and how many pages there are in each... Office 2013
Novice
making a list of sections in MS Word and how many pages there are in each...
 
Join Date: Feb 2016
Posts: 5
Murat is on a distinguished road
Default

Thank you!
That actually solved the problem. The {...} text becomes invisible once run, and works like a charm.
Perfect!
Reply With Quote
Reply

Tags
pages, section, toc

Thread Tools
Display Modes


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
making a list of sections in MS Word and how many pages there are in each... Pages sizes of sections jwcane Word 1 06-15-2010 01:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft