Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation question (MS Word from VFP)
Message
From
14/08/2006 10:30:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01144904
Message ID:
01145307
Views:
18
>I think I have a way I can do what I need to do... which brings me to a second question. If I issue the following code:
>
>oWord = CREATEOBJECT("Word.Application")
>oDocument = oWord.Documents.OPEN("C:\test.doc")
>With oRange.Find
>   .Text="SomeText"
>   lFound = .Execute	
>EndWith
>
>
>If lFound = .T., how can I then set a new range (oRange) equal to the starting position of where the text was found?

It happens automatically. When you use the Find.Execute method, the range is reset to the found text.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform