Text search app

A

AD

Hello,

I am working on a little project that will work as follows.

1. User enters search text in a form...clicks button
2. The App looks through all .doc files in the same path as the app.
3. For each instance of the text, I want to print out a line on an excel
sheet stating the path, file name, location of the text within the file.

I can manage most of this, but I am lost on a few issues.

Does the find method within Word return a position, or is there some other
way to get this. (the position of the found text within the file.)

Thanks
Ariel
 
T

Tony Jollans

The Find method of a Range redefines the Range to the found text. You can
then interrogate that (redefined) Range for any information you want
(Range.Start, etc.)
 
A

AD

Thanks a lot, I'll work with that.

Ariel


Tony Jollans said:
The Find method of a Range redefines the Range to the found text. You can
then interrogate that (redefined) Range for any information you want
(Range.Start, etc.)
 

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