Finding Open Applications That Are DDE Capable (102362)



The information in this article applies to:

  • Microsoft Excel 97 for Windows

This article was previously published under Q102362

SUMMARY

In Microsoft Excel, you can find which of your currently open applications are capable of dynamic data exchange (DDE) by using the following macro function:
   =INITIATE("","")
				
This function displays a DDE dialog box that lists all of the open applications and topics to which Microsoft Excel can open a DDE channel. You can then use other DDE commands such as EXECUTE() and SEND.KEYS() to control the other application.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. In Microsoft Excel versions 5.0, 7.0, and 97, you can use the following Visual Basic for Applications procedure to determine which of your open applications are capable of DDE:
   SUB Initiate_DDE ()
      ChanNum = Application.DDEInitiate("", "")
   End Sub
				
NOTE: Microsoft Excel version 5.0 for the Macintosh requires system software version 7.0 or later for this and other DDE functions to work.

REFERENCES

"Function Reference," version 4.0, page 240

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbdtacode kbhowto kbinterop kbProgramming KB102362