>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.