_Application.DDEInitiate Method

Opens a dynamic data exchange (DDE) channel to another application, and returns the channel number.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Function DDEInitiate ( _
    App As String, _
    Topic As String _
) As Integer
Dim instance As _Application
Dim App As String
Dim Topic As String
Dim returnValue As Integer

returnValue = instance.DDEInitiate(App, _
int DDEInitiate(
    string App,
    string Topic


  • App
    Type: System.String
    Required String. The name of the application.
  • Topic
    Type: System.String
    Required String. The name of a DDE topic — for example, the name of an open document — recognized by the application to which you're opening a channel.

Return Value

Type: System.Int32


Dynamic data exchange (DDE) is an older technology that is not secure. If possible, use a more secure alternative to DDE.

If it's successful, the DDEInitiate method returns the number of the open channel. All subsequent DDE functions use this number to specify the channel.

See Also


_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace