Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Apr 2001
    Location
    California
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    NumWords field (2003)

    The court rules applicable to a brief that I am submitting require me to give the word count. I inserted the NumWords field, which returns a count of 6491 words. As I was preparing to finalize the brief for submission to the court, I remembered back to a problem that Word 97 and Word 2000 had, which resulted in omitting words in footnotes from the value returned by that field. Therefore, I checked the count with the Word Count feature under Tools, and got a count of 7,945 words, which tells me that the NumWords field in Word 2003 continues to omit words in footnotes. How do I get them included?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: NumWords field (2003)

    This little macro will replace the current selection by a word count including footnotes:

    Sub InsertWordCount()
    Selection.TypeText ActiveDocument.ComputeStatistics(wdStatisticWords, True)
    End Sub

    If you put this macro in your Normal.dot and assign it to a toolbar button or keyboard shortcut, it can easily be called in any document.

  3. #3
    Lounger
    Join Date
    Apr 2001
    Location
    California
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: NumWords field (2003)

    Thanks very much. It seems to have worked. Interestingly, your macro results in a field that returns a count of 7838 words, while the word count function returns 7839.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: NumWords field (2003)

    Perhaps the word count function includes the number inserted by the macro?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •