character count

  • Thread starter Thread starter Jack Sons
  • Start date Start date
J

Jack Sons

Hi all,

I like to count the total number of appearences of certain characters in a
document. Say, I want to know the number of a's, b's c's, periods, commas,
questionmarks, spaces, 1's, 2's etc. Can't find a function that does the
trick and can't create a macro that does it. Most likely I will have to use
code.

Your help will be appreciated.

Jack Sons
The Netherlands
 
Word's search and replace function automatically reports on the number of replacements made.
Simply open the Replace dialog and replace whatever character you want to count with itself
(in other words, replace b with b or x with x). Because you are replacing the character with
itself, no observable change will be made to the document, but Word will dutifully tell you that
x number of replacements were made, giving you the character count you need.

Note, though, that characters in headers and footers and automatically generated numbers
won't be counted. Also note that unless you specify Match Case, Word will report on the total
number of b's and B's (upper and lower case together).
HTH!

----- Jack Sons wrote: -----

Hi all,

I like to count the total number of appearences of certain characters in a
document. Say, I want to know the number of a's, b's c's, periods, commas,
questionmarks, spaces, 1's, 2's etc. Can't find a function that does the
trick and can't create a macro that does it. Most likely I will have to use
code.

Your help will be appreciated.

Jack Sons
The Netherlands
 
Back
Top