Global.DDETerminate method (Word)
Closes the specified dynamic data exchange (DDE) channel to another application.
Syntax
expression. DDETerminate
( _Channel_
)
expression A variable that represents a 'Global' object. Optional.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Channel | Required | Long | The channel number returned by the DDEInitiate method. |
Example
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk