Application.DDEAppReturnCode Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns the application-specific DDE return code that was contained in the last DDE acknowledge message received by Microsoft Excel. Read-only Long.

expression .DDEAppReturnCode

expression A variable that represents an Application object.

This example sets the variable appErrorCode to the DDE return code.

appErrorCode = Application.DDEAppReturnCode