title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Global.DDETerminate method (Word) |
vbawd10.chm163119418 |
|
|
2502d0a7-c90b-1169-7b7b-a5d2b26445a6 |
06/08/2017 |
medium |
Closes the specified dynamic data exchange (DDE) channel to another application.
expression. DDETerminate
( _Channel_
)
expression A variable that represents a 'Global' object. Optional.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Channel | Required | Long | The channel number returned by the DDEInitiate method. |
This example creates a new workbook in Microsoft Excel and then terminates the DDE conversation.
Dim lngChannel As Long
lngChannel = DDEInitiate(App:="Excel", Topic:="System")
DDEExecute Channel:=lngChannel, Command:="[New(1)]"
DDETerminate Channel:=lngChannel
[!includeSupport and feedback]