Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search/replace in Word textboxes
Message
 
To
13/05/2004 04:50:08
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00903498
Message ID:
00903645
Views:
17
See Thread #782504.

>hi!
>
>i'd like to automate a search/replace in Word, including textboxes. my code is as follows:
>----------------------------------------
>oRange = oWord.ActiveDocument.Range(0,0)
>WITH oRange.Find
> .Text = "<>"
> .MatchCase = .F.
> .Format = .F.
> .Replacement.Text="REPLACEITEM"
> lFound = .Execute(,,,,,,,,,,1)
>ENDWITH
>----------------------------------------
>
>this works fine for standard document text, but doesn't find textbox items. anyone know how to do this?
>
>many thanks in advance!
Previous
Reply
Map
View

Click here to load this message in the networking platform