General information
Title:
Having a problem with Word & FoxPro
Can someone help with an OLE Automation problem ? I keep getting a syntax error at the last line. This is the sample code:
oWord = CREATEOBJECT("word.application")
oWord.Visible = .t.
myDocument = "c:\mysample.doc"
oWord.documents.open(myDocument)
oWord.Selection.Find.ClearFormatting
oWord.Selection.Find.Text = "honkin"
oWord.Selection.Find.Replacement.ClearFormatting
oWord.Selection.Find.Replacement.Text = ", nice"
oWord.Selection.Find.Execute Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only