Paste Link a Single Record to a Range in Excel from Q+E

Last reviewed: November 2, 1994
Article ID: Q76243

SUMMARY

If you paste link to Excel a single field of a query containing only one record from Q+E, the entire highlighted range will fill with that record.

This is be design; however, it may cause problems for you if you depend on the link to update when new records are added that match your criteria.

MORE INFORMATION

Workaround

Change the link formula in Excel to "ALL":

  1. Select cell A1 in Excel.

  2. Change the existing link formula to:

          =QE|Query1!ALL
    

  3. Hold down the CTRL and SHIFT keys before pressing the ENTER key to enter the formula as an array.

  4. The same record will still be displayed in each cell of the range as long as only one record matches the conditions specified in the query; however, when new records are added at this same location, they will be displayed in Excel.

Steps to Reproduce Problem

  1. In Q+E, open the example file EMP.DBF from the QE subdirectory.

  2. Select "R2C3," which should contain "L04".

  3. From the Select menu, choose Add Condition and choose the OK button. This should leave only one record displayed.

  4. Select "R1C3."

  5. From the Edit menu, choose Copy.

  6. In Excel, highlight A1:A10.

  7. From the Edit menu, choose Paste Link.

  8. The range A1:A10 will display "L04" in each cell. The formula bar will display:

          {=QE|Query1!'R1C3:R1C3'}
    

If you now add new records to DEPT.DBF so that you have more than one record with the location "L04", they would not be displayed in Excel because your current link refers only to a single cell.

REFERENCES

"Q+E for Microsoft Excel User's Guide," pages 50-52


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


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