Saving a Previous Database Definition When Using QE.XLA

Last reviewed: November 3, 1994
Article ID: Q68994

SUMMARY

With the add-in QE.XLA loaded, each time you choose Set Database from the Data menu and select the option Current Selection, the name DATABASE is defined as the current selection on the worksheet.

MORE INFORMATION

This may be inconvenient if you frequently switch between an internal database, located on your worksheet, and external databases.

To save the previous Database definition:

  1. From the Formula menu, choose Goto.

  2. Select Database. This highlights the area currently defined as Database.

  3. Choose Current Selection from the Set Database option.

When run from the worksheet where an internal database is defined, the following macro will reset the database definition to the previous definition.

   A1: =SELECT(!Database)
   A2: =DB.SET.DATABASE(TRUE)
   A3: =RETURN()

REFERENCES

"Q+E for Microsoft Excel User's Guide." Version 3.00, page 70


KBCategory: kbother
KBSubcategory:

Additional reference words: 3.0 3.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: November 3, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.