General information
Category:
COM/DCOM and OLE Automation
THANKS!! I was missing the "start".
et
>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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only