Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00761087
Message ID:
00761179
Vues:
26
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform