Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.09 KB

Word.Global.DDETerminate.md

File metadata and controls

52 lines (31 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Global.DDETerminate method (Word)
vbawd10.chm163119418
vbawd10.chm163119418
Word.Global.DDETerminate
2502d0a7-c90b-1169-7b7b-a5d2b26445a6
06/08/2017
medium

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

Global Object

[!includeSupport and feedback]