Reset document char count.

G

Guest

Hi,
I would like to reset the character count property of a Word document to
subtract any text that was in the document when it was opened. For example,
a document has 200 characters in it, then a typist types 125 characters into
the document and saves it. I would like the document properties to only
register the 125 characters that were actually typed. Is there a way to
write a macro or vb to do this?
Thanks
Brian
 
S

Shauna Kelly

Hi Brian

The information shown at File > Properties > Statistics shows the character
count. Word generates this whenever you view that dialog box. You can't
control what it displays.

You could write a macro that runs when the file is opened, stores the
character count at that moment, and then another that runs when the document
and stores the character count at that moment. And you could display the
difference somewhere. The real problem is that the user might (indeed,
should!) save frequently. So the count of characters added between saves
might not provide useful information.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 

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

Top