M
Millie
Is it possible to insert a word count in the footer of a Word document
similar to inserting the date & time whenever a document is changed?
similar to inserting the date & time whenever a document is changed?
macropod said:Hi Millie,
Yes, there's a NUMWORDS field, which you can create by pressing Ctrl-F9 to create a pair of field braces (ie '{ }') then typing
'NUMWORDS' between the field braces, thus '{NUMWORDS}', and pressing F9. Note two things about this:
1. Word's idea of a word count isn't what you might expect. For example, decimal numbers with thousands separators will be counted
as multiple words.
2. The NUMWORDS field will count itself when you update it.
--
Cheers
macropod
[MVP - Microsoft Word]
Millie said:Is it possible to insert a word count in the footer of a Word document
similar to inserting the date & time whenever a document is changed?
Millie said:Hi
Does that mean that commas and full stops are also counted as words?
--
Millie
macropod said:Hi Millie,
Yes, there's a NUMWORDS field, which you can create by pressing Ctrl-F9 to create a pair of field braces (ie '{ }') then typing
'NUMWORDS' between the field braces, thus '{NUMWORDS}', and pressing F9. Note two things about this:
1. Word's idea of a word count isn't what you might expect. For example, decimal numbers with thousands separators will be
counted
as multiple words.
2. The NUMWORDS field will count itself when you update it.
--
Cheers
macropod
[MVP - Microsoft Word]
Millie said:Is it possible to insert a word count in the footer of a Word document
similar to inserting the date & time whenever a document is changed?
macropod said:Hi Millie,
With the NUMWORDS field, a number like:
12,345,678.90
will only be counted as 1 word.
However, if you use periods as bullet points, for example:
. Hello
That would be counted as 2 words.
If your document contains a formula like:
C = 2 x 3.141459 x 4.37
that would count as 7 words.
The same applies to the 'DOCPROPERTY Words' fields suggested by Herb.
It's only when you try to use a macro to process words in a document that
you get problems. For example, in a document with nothing more than:
12,345,678.90
This macro:
Sub Test()
MsgBox ActiveDocument.Words.Count
End Sub
returns a count of 8!
--
Cheers
macropod
[MVP - Microsoft Word]
Millie said:Hi
Does that mean that commas and full stops are also counted as words?
--
Millie
macropod said:Hi Millie,
Yes, there's a NUMWORDS field, which you can create by pressing Ctrl-F9
to create a pair of field braces (ie '{ }') then typing
'NUMWORDS' between the field braces, thus '{NUMWORDS}', and pressing F9.
Note two things about this:
1. Word's idea of a word count isn't what you might expect. For example,
decimal numbers with thousands separators will be counted
as multiple words.
2. The NUMWORDS field will count itself when you update it.
--
Cheers
macropod
[MVP - Microsoft Word]
Is it possible to insert a word count in the footer of a Word document
similar to inserting the date & time whenever a document is changed?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.