Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Macro

Status
Not open for further replies.

pasu

Programmer
Aug 9, 2003
17
US
Anyone know if FoxPro can open a word document and then run a word macro?
 
Yes, it can drive MS Word as a COM server. Do a keyword search on "VFP WORD COM" both in the forum and in the FAQ. There are lots of threads about it.



Mike Krausnick
Dublin, California
 
pasu

This might help.

Code:
oWord=CREATEOBJECT("word.application")
oDocument=oWord.Documents.Open("c:\hello.doc")
oWord.Application.Run("macro1")

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top