>Hi, I need help.
>
>I only need to open a Word document and search & replace one string.
>
>I'm trying, but don't work.
>
>My code is the follow:
>
>loWord = CreateObject( "word.basic" )
>loWord.FileOpen( "C:\MyDocs\Doc1.doc" )
>loWord.EditFind.Execute( "##SearchText##", .t., .t., , .t., 1, , "Replace String", 1 )
>
>At this point, I receive an error code from OLE Server.
>
>Any suggestion ???
>
>Thanks In advance!!!!!!
with loWord
.startofdocument
.EditFindClearFormatting
.editfind("Owner","Boss",0,0,0,0,0,0,,1,,1)
endwith
Cetin