View Single Post
 
Old 09-13-2014, 07:52 AM
Dimsok Dimsok is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Sep 2014
Location: exUSSR
Posts: 50
Dimsok is on a distinguished road
Default Counting words from the start

I found here that script:

Code:
Sub WordCounter()
Dim oRev As Revision, i As Long
For Each oRev In ActiveDocument.Revisions
  If Int(oRev.Date) = Date And oRev.Type = wdRevisionInsert Then
    i = i + oRev.Range.ComputeStatistics(wdStatisticWords)
  End If
Next
MsgBox i & " words added today.", vbInformation
End Sub
But doesn't work. Shows always "0". I need script for counting words, which nulled when i start ms word. Why doesn't work?

Last edited by macropod; 09-13-2014 at 03:29 PM. Reason: Added code tags & formatting
Reply With Quote