DB.PASTE.FIELDNAMES Pastes a Zero in Current Cell in Q+E

Last reviewed: November 2, 1994
Article ID: Q71967

SUMMARY

If you use the DB.PASTE.FIELDNAMES function supported by the QE.XLA and leave out the first argument, "filename", a zero will be pasted into the current cell or it will be left blank.

Once you have chosen the Paste Field Names command from the Data Menu and pasted the field name you want, the function will perform properly.

MORE INFORMATION

The README file located in the Excel directory after installing Microsoft Excel version 3.00 describes a second argument "paste_fields", which is a horizontal array of the field names to be pasted. If you use "paste_fields", the first argument "filename" may be eliminated.

The following example will NOT work correctly unless you have pasted the fieldnames LAST_NAME and FIRST_NAME by hand previously:

   A1 =ACTIVATE("sheet1")
   A2 =DB.SET.DATABASE(FALSE,"dBASEFile","d:\excel\qe\addr.dbf")
   A3 =DB.PASTE.FIELDNAMES(,{"FIRST_NAME","LAST_NAME"})
   A4 =RETURN()

The following example WILL work correctly; however, it will paste all fieldnames:

   A1 =ACTIVATE("sheet1")
   A2 =DB.SET.DATABASE(FALSE,"dBASEFile","d:\excel\xl3\qe\addr.dbf")
   A3 =DB.PASTE.FIELDNAMES("d:\excel\qe\addr.dbf")
   A4 =RETURN()

Microsoft is researching this problem and will post new information here as it becomes available.

REFERENCES

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

README.TXT. Version 3.00, 12/9/90.


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.