Use
Words member[
^] of
Document[
^] object.
Note:
Each item in the Words collection is a Range object that represents one word. There is no Word object.
Steps to do:
1) Create an instance of MS Word.
2) Open existing document.
3) Go through the collection of Words (use
for each
loop).
4) Close the document.
5) Close an instance of MS Word.
That's all!
Word tasks[
^]