Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation ?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00761087
Message ID:
00761179
Views:
27
Something like:

lckeyword1="blah.."
lckeyword2="hello.."
with oWord.Selection
.Find.Execute(lckeyword1)
lnstart1=.Start
.Moveright
.Find.Execute(lckeyword2)
lnstart2=.Start
endwith
oWord.Activedocument.Range(lnstart1,lnstart2).Select

>Hi,
>
>I would like to be able to select a chunk of text in various word documents I will know a unique starting and ending word (eg. ,). These words may span several paragraphs so just selecting the paragraph does not work. Selecting the word isn't a problem I just use:
>owordobj.Selection.Find.Execute(">Does anyone know the syntax?
>
>TIA,
>Earl Todd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform