XL5: Remote Data Not Accessible with DDE Channel

Last reviewed: September 12, 1996
Article ID: Q116339
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

When you use the Microsoft Excel Visual Basic, Applications Edition, DDEInitiate macro function to initiate a channel with Microsoft Query version 1.0, the following message may appear:

   Remote data not accessible.
   Start Application 'MSQUERY.EXE'?

The available options are Yes, No, and Help. If you choose Yes, another instance of the application is started. If you choose No, then you may experience problems communicating with the DDE channel.

CAUSE

This error message may occur for the following reasons:

  • Communication with Microsoft Query requires that the application is started before the DDEInitiate command is issued. To do this, add the following line above the DDEInitiate command:

          Shell "c:\windows\msapps\msquery\msquery.exe", 1
    

    -or-

  • If the shell line is already present, ensure that it has the value 1 for the windowstyle parameter (illustrated in step 1 above). This value runs the program in a normal window with focus (as opposed to the default value of 2, which runs the program in a minimized window with focus).

REFERENCES

"Microsoft Excel 5 Visual Basic for Applications Reference," by Microsoft Press, pages 606-607

For more information about initiating a DDE channel to another application choose the Search button in Help, and type:

   ddeinitiate


KBCategory: kbinterop
KBSubcategory: xlquery

Additional reference words: 5.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.