Progress Bar for Microsoft Word using vba to display progress against a target word count.
Install by copying code into your macro edit window.
Optionally create buttons on your ribbon bar or quick access toolbar for ProgressCheck and StopProgressCheck
Run ProgressCheck to kick off the process. Provide your target word count. The status bar will update with your progress percentage and a fancy progress bar made with the character "I" and spaces.
Keep typing and the status bar will return to normal. Every 20 seconds the progress check will run again automatically, but you might not see it if other things write to the status bar. Pause for a few seconds and it should become visible again.
Run StopProgressCheck to stop the automatic processing every 20 seconds.
Running NumberOfWords by itself is not going to get you anywhere.
- NumberOfWords should really be a private function
- entering something other than a bare number (i.e. 10000 or 100 or 3758) will likely cause problems.