Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Text in Word
Message
From
10/05/2001 13:03:27
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00505735
Message ID:
00505854
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform