Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Word macro legible to VFP
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00889060
Message ID:
00889071
Views:
16
This message has been marked as the solution to the initial question of the thread.
I am not sure what is your selection, but if the problem is the Execute only, you can try this:
#DEFINE wdFindContinue 1
#DEFINE wdReplaceAll 2
thisform.oWord=CreateObject("Word.Application")
* I added this two next lines, for I think they are missing?
loDocument=thisform.oWord.Open("test.doc")
loDocument.Select

thisform.oWord.Selection.Find.Execute("**", .T., .T., .F., .F., .F., .T., 1, , "^p", wdReplaceAll)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform