Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Word macro legible to VFP
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
How to make Word macro legible to VFP
Miscellaneous
Thread ID:
00889060
Message ID:
00889060
Views:
57
Hello All !
I'm using sometimes Word as a COM SERVER, today I got a problem - couldn't find right syntax for this marco (all I need to replace ** signs with ^p)

With Selection.Find
.Text = "**"
.Replacement.Text = "^p"
.Forward = True
.Wrap = wdFindContinue
...
End With
Selection.Find.Execute Replace:=wdReplaceAll

I tried something like this:
#DEFINE wdFindContinue 1
#DEFINE wdReplaceAll 2
thisform.oWord=CreateObject("Word.Application")
WITH thisform.oWord.Selection.Find
.Text = "**"
.Replacement.Text = "^p"
.Forward = .T.
.Wrap = wdFindContinue
.....
ENDWITH
thisform.oWord.Selection.Find.Execute(wdReplaceAll) && this part doesn't work

Thanks in advance
Mariam
Next
Reply
Map
View

Click here to load this message in the networking platform