P
phosphaenus
I've been looking for macros to count words inserted or modified, as
tracked using Track Changes. Note that I want to count inserted words
and words I've changed, but not deleted words. [Ideally I could decide
whether to count inserted punctuation or not, but this is a fine
point for the time being]
Anyway, on a Japanese newsgroup I found the following macro, posted by
Miyahn (Masataka Miyashita), and it seems to work very nicely.
However, for reasons I can't understand it seems to overcount by 5 or
10%, at least in my test document... I can't see any pattern to the
overcounting, and if anyone can explain it (and ideally resolve it)
I'd be delighted.
Sub CountInsertWords()
Dim aRev As Revision, I
For Each aRev In ActiveDocument.Revisions
If aRev.Type = wdRevisionInsert Then I = I +
aRev.Range.Words.Count
Next aRev
MsgBox I
End Sub
tracked using Track Changes. Note that I want to count inserted words
and words I've changed, but not deleted words. [Ideally I could decide
whether to count inserted punctuation or not, but this is a fine
point for the time being]
Anyway, on a Japanese newsgroup I found the following macro, posted by
Miyahn (Masataka Miyashita), and it seems to work very nicely.
However, for reasons I can't understand it seems to overcount by 5 or
10%, at least in my test document... I can't see any pattern to the
overcounting, and if anyone can explain it (and ideally resolve it)
I'd be delighted.
Sub CountInsertWords()
Dim aRev As Revision, I
For Each aRev In ActiveDocument.Revisions
If aRev.Type = wdRevisionInsert Then I = I +
aRev.Range.Words.Count
Next aRev
MsgBox I
End Sub