Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2014, 07:52 AM
Dimsok Dimsok is offline Counting words from the start Windows XP Counting words from the start Office 2007
Advanced Beginner
Counting words from the start
 
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
  #2  
Old 09-13-2014, 03:28 PM
macropod's Avatar
macropod macropod is offline Counting words from the start Windows 7 64bit Counting words from the start Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Unless you had 'Track Changes' on when you made some changes today, the result must be 0.

PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-13-2014, 09:32 PM
Dimsok Dimsok is offline Counting words from the start Windows XP Counting words from the start Office 2007
Advanced Beginner
Counting words from the start
 
Join Date: Sep 2014
Location: exUSSR
Posts: 50
Dimsok is on a distinguished road
Default

Is it possible to do something, that when i exceed some words per day popup messege will appear, saying that job is done or something like it?
Reply With Quote
  #4  
Old 09-13-2014, 10:00 PM
macropod's Avatar
macropod macropod is offline Counting words from the start Windows 7 64bit Counting words from the start Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That's not possible, for the same reasons I gave you in this thread: https://www.msofficeforums.com/word-...utosaving.html.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting words from the start How to mark underlined words in a sentence as A, B, C, D (beneath the words) thudangky Word 13 12-12-2013 02:22 AM
Counting words from the start Identifying and counting words monique Word 1 08-30-2012 05:33 AM
Why Words doesn’t show the style of the selected words automatically???? Jamal NUMAN Word 0 04-14-2011 03:20 PM
Counting words from the start listing and counting words gencoglux Word 2 05-07-2010 05:10 PM
Counting Legal Words bulletrick Word 0 12-30-2005 03:22 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft