Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word automation Replace
Message
From
07/09/2021 10:59:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01682265
Message ID:
01682266
Views:
60
>Hi, i need to know if i can make a replace in a word document when the text i need to change is inserted into a box... I can replace all text not in a box with this code
>
>loWord.Application.Selection.Find.Execute(lcOldText,,,,,,.T.,wdFindContinue,,lcNewText,wdReplaceAll)
>
>But this doesn't work with in box text

As far as I remember, boxes are not considered part of text, they are somehow separate. Check what collections your oDocument has - images, frames... some of them should be your boxes, and then replace in each too.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform