WordCount Word Macro
This macro counts all the words, characters, and double-byte characters in a Microsoft Word document, including the words in text boxes (the standard Word Count feature does not count words in text boxes). It can also do batch word counts for multiple documents.
New -- Updated 18:50 2007/03/08: Fixed the macro so that it correctly counts text in textboxes. Thanks to Nathan Konrad for pointing out the bug.
Download the WordCountAll setup file.
Double click on the setup file, and follow the onscreen instructions.
Select Start >> Programs >> WordCountAll >> Uninstall WordCountAll
The WordCountAll template installs a toolbar with a single button:
Click the toolbar button to launch the word count dialog.
In order to count the words in grouped textboxes, you must first "ungroup" them. This could affect the appearance of the document. Therefore, it is recommended that you perform this macro on a backup copy of your document when counting the words in grouped textboxes, not on your working copy.
I just want the template, without the installer!
If you just want the template, you can get it here.
Note to Mac Users
A syntax error may occur if running this macro on the Macintosh version of Word (thanks to Adam Rice for pointing this out, and coming up with a solution). You can remedy this problem by commenting out the first few lines in the macro file, like so:
' Attribute VB_Name = "WordCountAllDlg"
' Attribute VB_GlobalNameSpace = False
' Attribute VB_Creatable = False
' Attribute VB_PredeclaredId = True
' Attribute VB_Exposed = False