How can I find the number of highlighted chunks of text in an MS Word Document

Posted by Majid on Stack Overflow See other posts from Stack Overflow or by Majid
Published on 2010-04-20T18:20:56Z Indexed on 2010/04/20 18:23 UTC
Read the original article Hit count: 169

Filed under:
|

Hi all,
I am writing a macro in MS Word which should find all highlighted text in a document and perform some action on each. I am planning a loop to do the search and manipulation part and have no problem with this part of the code.
But I don't know how to find how many iterations I'm going to need. Is there a vay to determine the number of highlights in VBA?
Many thanks in advance.

© Stack Overflow or respective owner

Related posts about ms-word

Related posts about vba