What is the best way to read Word text looking for patterns?

C

Chrisso

Hi All

I have a file system full of Word documents. All the documents have
identifiers that follow a proscribed form :
CJS/<number>/<number>
e.g. CJS/10/1023 and CJS/10/2023

I need to find which documents reference other documents in their body
text.

I am an intermediate Excel VB programmer and hope to do this in Word
VB with the following pseudo-code for a single document:
* open the document
* read the text in some fashion in some sort of chunk per
iteration
* scan this text for text that looks like the above described
document number pattern
* compile the list as I go and output to Excel

Is this all possible in Word VB? It seems to me the trickest part
would be to work out how to read the text in......

Does anyone have any hints or ideas to get me started on this one? I
have the code to open a Word file but that is it at this time. What is
the best way to read the text from a Word document into a VB program?

Thanks for any ideas.
Chrisso
 

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