![]() |
#5
|
||||
|
||||
![]()
You could use the WindowSelectionChange event which won't fire on every single thing you can do in the file but will fire annoyingly often.
https://msdn.microsoft.com/en-us/lib...or=-2147217396 Your code would need to store a variable to track the previous incremental value so that the word count can be compared against that to see when an increment has tripped the trigger eg. Start with a value of zero words, the trigger stores this value and then the code keeps firing but the code effectively does nothing until you trip past 1000 words and the sound plays and the new stored value is 1000. If the user deletes words to go below 1000 or pastes/types words to go past 2000 then the sound plays again and the stored value is reset.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
counter, macro, word 2016 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
help creating a dollar counter add-in | dstallworth | PowerPoint | 0 | 04-23-2017 12:49 PM |
![]() |
ch1325 | Word VBA | 2 | 04-30-2016 06:50 AM |
![]() |
meenagrace | Word VBA | 3 | 11-07-2014 01:29 PM |
![]() |
Liuneddu | Word | 1 | 08-13-2013 03:57 AM |
Visitor counter on my webpage in Word | jwhbos | Word | 0 | 02-13-2010 04:21 AM |