Application.DDEExecute (Word)

Sends a command or series of commands to an application through the specified dynamic data exchange (DDE) channel.

DDEExecute (Channel, Command)


Dim lngChannel As Long 
 
lngChannel = DDEInitiate(App:="Excel", Topic:="System") 
DDEExecute Channel:=lngChannel, Command:="[New(1)]" 
DDETerminate Channel:=lngChannel

Arguments

The following arguments are required:

Channel (Long) - The channel number returned by the DDEInitiate method.

Command (String) - A command or series of commands recognized by the receiving application (the DDE server). If the receiving application cannot perform the specified command, an error occurs.