Close a DDE channel

Microsoft Query

Show All

Close a DDE channel

To close a DDE channel, use DDETerminate. This method has only one argument — the channel number of the DDE channel to be closed. All queries that are opened on this channel are closed automatically when you use DDETerminate, and you are logged off from all connected data sources.

An error is returned if the channel number you use is invalid.