Information générale
Catégorie:
COM/DCOM et 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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement