Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Gareth Edwards
 
Posts: n/a
Default Word Counts with different answers

I have been trying to compare my own word count algrothm with Microsoft
Word's word count statistics, and have found at least three ways of
retrieving a word count from word.

1. In the properties dialog under the File menu.
2. At the end of the Spelling and Grammar check.
3. Using the ReadabilityStatistics collection on the Document object in VBA.

However an most documents I have check I get three different answers!!!!!
For example one document I got word counts of 1,154, 1,144 and 645.

Has any one else come across this or know why this might be happening?

Gareth Edwards
Database Manager
Higher Education Funding Council for England
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel
 
Posts: n/a
Default Word Counts with different answers

You missed Document.Words.Count, retrievable from VBA.

The issue is that 'word' is actually quite hard to define. Is a phone number
a word? Or three words? Is "tab-delimited" one word or two? What do you do
with meaningless strings, marked as "no language", within a table?

In the file menu, the count is an indicator of the file length. In VBA,
"word" is any sequence of letters delimited by a non-letter (so 'Bill's'
counts as two. You might also restrict the count to string sequences that
are in, or derivable from, the dictionary. You have to remember that Word
doesn't understand English (or any other language); it's just manipulating
characters.





"Gareth Edwards" wrote in message
...
I have been trying to compare my own word count algrothm with Microsoft
Word's word count statistics, and have found at least three ways of
retrieving a word count from word.

1. In the properties dialog under the File menu.
2. At the end of the Spelling and Grammar check.
3. Using the ReadabilityStatistics collection on the Document object in
VBA.

However an most documents I have check I get three different answers!!!!!
For example one document I got word counts of 1,154, 1,144 and 645.

Has any one else come across this or know why this might be happening?

Gareth Edwards
Database Manager
Higher Education Funding Council for England



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman
 
Posts: n/a
Default Word Counts with different answers

Gareth Edwards wrote:
I have been trying to compare my own word count algrothm with
Microsoft Word's word count statistics, and have found at least three
ways of retrieving a word count from word.

1. In the properties dialog under the File menu.
2. At the end of the Spelling and Grammar check.
3. Using the ReadabilityStatistics collection on the Document object
in VBA.

However an most documents I have check I get three different
answers!!!!! For example one document I got word counts of 1,154,
1,144 and 645.

Has any one else come across this or know why this might be happening?

Gareth Edwards
Database Manager
Higher Education Funding Council for England


Hi Gareth,

Jezebel mentioned the VBA property Document.Words.Count. This suffers from
the unfortunate habit of counting punctuation and paragraph marks as
"words".

However, there is the Tools Word Count dialog, which usually comes much
closer to what humans think of as the number of words in a document or
selection. It can also be used in a macro, as discussed in a thread in the
microsoft.public.word.vba.general newsgroup:

http://groups.google.com/group/micro...feaa105852f9a0

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
In Word, how do I surpress headers and footers on page 2 Bill Microsoft Word Help 1 December 15th 05 06:13 PM
Does Word have Keyboard Merges like Word Perfect does? Donnas Mailmerge 1 June 28th 05 09:30 PM
Boiletplates from Word Perfect linda Microsoft Word Help 1 January 28th 05 05:37 PM


All times are GMT +1. The time now is 10:06 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"