Searching multiple, though similar documents, for specific text.

T

ThePolymathicMonk

I am attempting to create an Access database that will populate table fields
based on the search results of current and potential employee resumes. For
example, capturing X # of characters either side of words like "Master's
Degree", or "Military." I already have a similar question out to the Access
group, but started thinking that this would probably need to be a two step
process, starting with seaching a Word or RTF document, somehow saving the
results as *.txt and then importing that into Access.
 
H

Helmut Weber

Hi,

like this:

Dim rDcm As Range ' document's range
Dim rTmp As Range ' a temporary range
Set rDcm = ActiveDocument.Range
Set rTmp = ActiveDocument.Range
With rDcm.Find
.Text = "pro"
While .Execute
rTmp.Start = rDcm.Start - 5
rTmp.End = rDcm.End + 5
MsgBox rTmp
Wend
End With


Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
T

ThePolymathicMonk

Mr. (or should I say Herr?) Weber,

Thank you for the prompt reply...I will definately give that a try...

Sincerely,

KMN
 

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