Information générale
Catégorie:
COM/DCOM et 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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement