I was wondering if there's a way to get a word count that excludes text with a specific Style in a Microsoft Word 2007 document?
I've seen this related question, but I've got blocks of source code scattered throughout which would mean I'd have to go through each of my documents a section at a time..
Does anyone know a way to do this with a macro or a splash of VB Script or some such?
Answer
Based on this answer for previous versions of Microsoft Word, I've found the following manual solution to my question:
- In the 'Home' ribbon-bar thingy, click on the small pop-out expandy-button in the far bottom right of the Styles group (which shows the Styles window - Alt+Ctrl+Shift+S)
- For the desired Style you want a Word Count for, click the drop-down next to the style name, and click 'Select All x Instance(s)'
- The Status bar (bottom left) gets updated with the Word Count for the selected Style (or you can open the 'Review' ribbon, and click 'Word Count' in the Proofing group - which also works on the current selection).
Bonus tip - you can hold the Ctrl key while clicking the 'Select All x Instance(s)' of another Style to have multiple Styles selected!
No comments:
Post a Comment