Terminating a Channel with Q+E Closes the File

Last reviewed: November 4, 1994
Article ID: Q67442
The information in this article applies to:
  • Microsoft Q+E for Microsoft Excel, versions 2.1, 2.5 and 3.0

SUMMARY

When a file is the topic of a DDE channel to Microsoft Q+E or a file is opened over a channel initiated with the topic "system", that channel will close the file if you issue a terminate.

Workaround

Save the query before terminating the channel. This allows you to reopen the query in Q+E.

MORE INFORMATION

The following macro opens EMP.DBF, selects all employees hired after 1/1/85, and then saves the query as TEST.QEF. You can then move to Q+E and open TEST.QEF to view only employees hired after 1/1/85.

   chan=INITIATE("QE","SYSTEM")
   =EXECUTE(chan,"[open('c:\excel\qe\emp.dbf','dBASEfile')]")
   =EXECUTE(chan,"[select.column(hire_date)]")
   =EXECUTE(chan,"[add.condition(1,5,'1/1/85',FALSE)]")
   =EXECUTE(chan,"[save.query.as('test.qef')]")
   =TERMINATE(chan)
   =RETURN()


KBCategory: kbother
KBSubcategory:

Additional Reference Words: 2.1 2.10 2.10c 2.5 2.50 3.0 3.00 3.0a 3.00a


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: November 4, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.