DDEExecute Method

Performs actions or runs commands in another application through dynamic data exchange (DDE).

Syntax

expression**.DDEExecute(Command, Timeout)**

*expression   *     Optional. An expression that returns an Application object.

Command    Required String. The command to carry out in another application.

Timeout    Optional Variant. The number of seconds to wait for the other application to execute before proceeding. The default value is 5.

Remarks

If your macro displays a dialog box in another application, you may need to increase the default value for Timeout.

Applies to | Application Object

See Also | DDEInitiate Method | DDELinksUpdate Method | DDETerminate Method