Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-11-2018, 03:07 AM
Guessed's Avatar
Guessed Guessed is offline Word counter with x word alert Windows 10 Word counter with x word alert Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
 

Tags
counter, macro, word 2016



Similar Threads
Thread Thread Starter Forum Replies Last Post
help creating a dollar counter add-in dstallworth PowerPoint 0 04-23-2017 12:49 PM
Word counter with x word alert Using a display alert command in Word ch1325 Word VBA 2 04-30-2016 06:50 AM
Word counter with x word alert How to dismiss/avoid warning/alert dialog boxes in Microsoft.Office.Interop.Word.Document meenagrace Word VBA 3 11-07-2014 01:29 PM
Word counter with x word alert Recipient counter in Mail Merge Wizard displays only one digit in Word 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:22 AM.


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