Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting Text in Word
Message
De
10/05/2001 13:03:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00505735
Message ID:
00505854
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>I am using the Find method to locate a specific string of text in a Word doc. The Execute() is returning TRUE, so now I want an object reference to that. I am trying oRange = oWord.Selection which does return an object reference.

If you have a Range to start with and call its Find.Execute method, after the search, the Range has been changed to the found text.
IF oRange.Find.Execute()
   * oRange now points to the matching text
ENDIF
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform