XL: "Database Range Not Defined"/Data Missing Saving to dBASE

Last reviewed: February 5, 1998
Article ID: Q31817
The information in this article applies to:
  • Microsoft Excel for Windows, versions 2.x, 3.x, 4.x, 5.0, 5.0c
  • Microsoft Excel for Windows 95, version 7.0

SYMPTOMS

In Microsoft Excel, if a database is not defined on the worksheet, you may receive one of the following error messages when you save a worksheet to the dBASE (.DBF) file format:

   Database range is not defined

    -or-

   No list found. Select a single cell within your list and Microsoft Excel
   will select the list for you.

Also note that only the data that is in the database range is saved to the .DBF file. (Other data on the worksheet are lost when you save the file in this file format.)

CAUSE

In Microsoft Excel, you must define a database on the worksheet before you save it in the dBASE file format.

WORKAROUND

To define a database on a worksheet so that you can save it in a dBASE file format, follow these steps:

  1. On the Microsoft Excel worksheet, select the range that contains the database.

  2. In Excel 5.0 and later, click the Name Box, type Database and press ENTER. (This is equivalent to creating a defined name called Database).

    In Excel 4.x and earlier, click Set Database on the Data menu.

  3. Save the file in the dBASE file format you want.

NOTE: When you add records to an old .DBF file, you must remember to extend the database range so that the new data can be saved.

MORE INFORMATION

In Microsoft Excel for Windows version 2.x, you can save a file in the dBASE II and dBASE III file formats. In Microsoft Excel for Windows versions 3.0 and later, you have the added capability of saving a file to the dBASE IV file format.

For more information about how files are saved to dBASE file format in Microsoft Excel versions 5.0 and later, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID:Q46228
   TITLE     :Data Lost When File Saved in .DBF File Format


Additional query words: 7.00 2.00 2.01 2.10 2.20 2.21 3.00 4.00 5.00
err msg dbf
Keywords : kberrmsg kbusage
Issue type : kbprb


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