Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

Old thread, I know, sorry! But I just found a way to do this...

  • Edit the style you would like to exclude, choose Format > Font and set the font to "Hidden".
  • Click the Big Office Button > Word Options > Display and tick "Show Hidden Text".

This will display the hidden text on the screen but exclude it from the Word count. To ensure that it prints in your final version, either edit the style again, or choose Big Office Button > Word Options > Display and tick "Print hidden text".

Plus... You can also mark individual sections/paragraphs as "hidden" and they will also be excluded from the word count.

Hope that helps somebody!


share|improve this answer
This is much simpler way to follow :) – Roylee Nov 10 '13 at 9:45
This is such a clunky solution, but it works to exclude text from word count fields. Just what I was looking for, thanks! – D4nC00per Mar 26 '15 at 0:35
up vote 7 down vote accepted

Based on this answer for previous versions of Microsoft Word, I've found the following manual solution to my question:

  1. 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)
  2. 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)'
  3. 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!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .