Word Count Excluding bracketed words

J

Jay Freedman

Hi - is it possible for word count to exclude all words in brackets?

Not directly -- you have to do it in two steps.

Make a copy of the document using the Save As command. In the copy,
delete all the words that are bracketed, by using a wildcard
replacement of an expression like

\([A-Za-z ]@\)

with nothing as described at
http://www.gmayor.com/replace_using_wildcards.htm (but since different
people use "bracket" to mean different characters, you may have to
change the expression to make it work for yourself).

Do a word count on the remaining text of the copy document, which you
can then discard.
 
S

senthilkumarabi

Hi jlk,

It is not possible using word inbuilt function. But we can writ
macros.

Thanks,
Senthil.
 
S

Suzanne S. Barnhill

You could also use a Replace operation to just format the bracketed words as
Hidden. When Hidden text is not displayed, it is also not counted.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

Jay Freedman said:
Hi - is it possible for word count to exclude all words in brackets?

Not directly -- you have to do it in two steps.

Make a copy of the document using the Save As command. In the copy,
delete all the words that are bracketed, by using a wildcard
replacement of an expression like

\([A-Za-z ]@\)

with nothing as described at
http://www.gmayor.com/replace_using_wildcards.htm (but since different
people use "bracket" to mean different characters, you may have to
change the expression to make it work for yourself).

Do a word count on the remaining text of the copy document, which you
can then discard.


--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.
 
Joined
Jan 9, 2015
Messages
6
Reaction score
0
This can be done with Hidden font.

A VBA tool derived from this technique is available here: ezcite.sourceforge.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top