What is the best way to scan everyword in a document?

K

Ken Wan

Hi,
I have to go thru every word in a document and perform some checks like:
a.. if the word is highlighted, e.g. bold, underscored.
b.. if the word contains the superscript/subscript.
What is the best way to carry out this kind of scanning?
Any suggestions will be greatly appreciated.
Ken
 
D

Dave Lett

Hi Ken,

Your most efficient way is to create separate find routines for the _type_
of formatting that you want to find (bold, underscore, highlight,
superscriprt or subscripte). It is very inefficient to go through a document
word for word and then test it's formatting characteristics.

HTH

Hi,
I have to go thru every word in a document and perform some checks like:
if the word is highlighted, e.g. bold, underscored.
if the word contains the superscript/subscript.
What is the best way to carry out this kind of scanning?
Any suggestions will be greatly appreciated.
Ken
 
K

Ken Wan

Hi, Dave,
Thanks for the response. My tasks are not only find those highlighted words
but also output a text file containing the original document contents with
those words tagged, similar to a HTML conversion but in some other format.
However, I am not allowed to change the original Word document. Any further
suggestions?
TIA,
Ken
 
D

Dave Lett

Hi Ken,

You can still use the find and replace. At the start/end of your routine,
you can save the existing file with a new name (and, therefore, never modify
the original file).

HTH
 

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