Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2019, 02:05 AM
ajriddin ajriddin is offline Insert a section word count on a cover page of a document Windows 8 Insert a section word count on a cover page of a document Office 2016
Novice
Insert a section word count on a cover page of a document
 
Join Date: Apr 2019
Posts: 1
ajriddin is on a distinguished road
Default Insert a section word count on a cover page of a document

Hi there.



I am creating a template document for my students to use when writing assessments.

My first page is a cover page. I then have a section break and the students will then begin their assessment on the 2nd page.

Part of their instructions is to include a word count. I initially used the NUMWORDS field, but forgot that it would count all words in the document.

I believe there is a way of counting only the words in a specific section and then return the value for that. I have found a number of online tutorials with code included, but due to my very limited knowledge of VBA and macros, I cannot get it to work properly.

I would like to insert the section 2 word count into a table on the cover page.

Is anyone able to assist me, with perhaps a simple idiots guide that I can work from?
Reply With Quote
  #2  
Old 04-10-2019, 02:52 PM
macropod's Avatar
macropod macropod is offline Insert a section word count on a cover page of a document Windows 7 64bit Insert a section word count on a cover page of a document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,433
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Word's NUMWORDS field has no means of defining a range for the count. Indeed, from the first refresh onwards, it includes itself in the count. What you can do is use a formula field coded along the lines of:
{={NUMWORDS}-n}
where n is the count of words on your cover page. To create such a field, press Ctrl-F9 twice to create a nested pair of field braces (i.e. {{}}), then add the text to provide the above construction, replacing the 'n' with the cover page word count +1. Press F9 to update when you're done.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert a section word count on a cover page of a document Word 2007, cannot insert Section Break (Continuous), only Section Break (Next Page) btse1 Word 3 11-01-2018 09:23 AM
Insert a section word count on a cover page of a document Setting background image to cover all of page in Word document goak Word 2 06-30-2014 11:59 PM
Macro to open the Insert>Cover Page window /dialog box Catty Word VBA 3 02-24-2014 06:02 PM
Insert a section word count on a cover page of a document How to insert a cover page inbetween each existing page when printing grumby1 Word 6 02-18-2014 07:53 PM
Insert a section word count on a cover page of a document Word: count total page of each section salmonrose Word 1 10-15-2011 05:10 AM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 10:39 PM.


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