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

DDE link to run a Word97 macro from Access97

Status
Not open for further replies.

wadjssd

Technical User
Jan 24, 2002
31
GB
This is probably really simple, but I am new to DDE coding....

I want to get a macro in Word to run when I click a button in Access. I can get Word initiated, but cannot get the code to work right so that the macro runs too.

Any help much appreciated.

Thanks.
 
Okay, 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 run execute MyMacro. Why isn't this working? Thanks again!

channel = DDEInitiate("winword", "SYSTEM")
DDEExecute channel, DoCmd.Maximize
DDEExecute channel, DoCmd.RunMacro("MyMacro")
DDETerminate channel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top