DDETerminate Method
Applies To
Application object, Global object.
Description
Closes the specified dynamic data exchange (DDE) channel to another application.
Syntax
expression.DDETerminate(Channel)
expression Optional. An expression that returns an Application object.
Channel Required Long. The channel number returned by the DDEInitiate method.
See Also
DDETerminateAll method.
Example
This example creates a new workbook in Microsoft Excel and then terminates the DDE conversation.
chan = DDEInitiate(App:="Excel", Topic:="System")
DDEExecute Channel:=chan, Command:="[New(1)]"
DDETerminate Channel:=chan