How do I get word count in MSWord field code?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to get the number of characters with spaces in a Word document
inserted in a field code. Is this possible?
 
I would like to get the number of characters with spaces in a Word document
inserted in a field code. Is this possible?

Not without a macro. The standard NumChars field gives the count
without spaces.
 
If you don't double-space between sentences, you can get a fairly close
approximation with the following field code:

{={numchars}+{numwords}}
 
Hi deepster,

Try using Insert|Field, then selecting 'Docproperty', followed by clicking
the 'Options' button and choosing "CharactersWithSpaces".

Alternatively, you can code it yourself with Ctrl-F9 to create a pair of
field braces, then typing:
DOCPROPERTY "CharactersWithSpaces"
between them to get:
{DOCPROPERTY "CharactersWithSpaces" }
and pressing F9 to update.

Cheers
 
At my age, I'm constantly re-learning things I'd forgotten about.
 

Ask a Question

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.

Ask a Question

Back
Top