General information
Category:
COM/DCOM and OLE Automation
>Hello
>How can I call from VFP Word's macro?
>
As soon as I sent it, I realized my answer was a little misleading. You'll probably want to do something about opening or creating a document in between starting Word and running the macro:
oWord = CreateObject("Word.Application")
oWord.Documents.Open()
oWord.Run("MyMacro") && where the macro is contained in the document
Tamar
Previous
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