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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDE macro execution - aaarrghhh!!!

Status
Not open for further replies.

wadjssd

Technical User
Jan 24, 2002
31
GB
I'm trying to get Access 97 to initiate Word 97 and run a macro within Word.

I've got the DoCmd object, and am trying to get both the Maximize and RunMacro functions to work, ie to maximize my Word application and execute MyMacro. Why isn't this working?

channel = DDEInitiate("winword", "SYSTEM")
DDEExecute channel, DoCmd.Maximize
DDEExecute channel, DoCmd.RunMacro("MyMacro")
DDETerminate channel
 
Hi,
Why not have MyMacro in the Document_Open event? :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top