#1
|
|||
|
|||
Word2007; a strange effect
Hi,
I've done the following with a larger text: Set oDoc = Active.Document then Worte = oDoc.ComputeStatistics(wdStatisticWords) [result: 3340] Absatz = oDoc.ComputeStatistics(wdStatisticParagraphs) [result: 67] then Worte = oDoc.Words.Count [result: 4343] Absatz = oDoc.Paragraphs.Count [result: 80] The differences are huge. Why? Cheers- Dietrich |
#2
|
|||
|
|||
Words.Count returns what you and I would consider words and punctuation and paragraph marks. wdStatistiWords returns words.
Paragraphs.Count returns all paragraph "containers" where wdStatisticsParagraphs returns only containers containing text. |
#3
|
|||
|
|||
Thank you very much, Greg!
|
#4
|
|||
|
|||
You are very much welcome.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't use RTF Textbox in Userform (Word2007) | dherr | Word VBA | 2 | 03-16-2015 07:50 AM |
How to unprotect and search a Word2007 doc? | pstein | Word | 1 | 05-31-2013 02:50 AM |
Where can I see the Word2007 doc properties (author,...)? | pstein | Word | 1 | 03-26-2012 03:01 PM |
Create popup box when closing Word2007 | ghillie30 | Word | 2 | 07-12-2011 06:20 AM |
Word2007 to email merge | bhalliday | Mail Merge | 2 | 06-18-2009 02:25 PM |