Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Application.DDEInitiate Method (Excel)

Published: July 16, 2012

Opens a DDE channel to an application.

expression .DDEInitiate(App, Topic)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

App

Required

String

The application name.

Topic

Required

String

Describes something in the application to which you're opening a channel — usually a document of that application.

Return Value

Long

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

This example opens a channel to Word, opens the Word document Formletr.doc, and then sends the FilePrint command to WordBasic.

channelNumber = Application.DDEInitiate( _ 
 app:="WinWord", _ 
 topic:="C:\WINWORD\FORMLETR.DOC") 
Application.DDEExecute channelNumber, "[FILEPRINT]" 
Application.DDETerminate channelNumber
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.