Fix the Cannot Extend Table or Database Error in an Excel Data Form
Question details
The user needs to resolve a Cannot extend table or database error when using Excel's legacy data form.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Adding records to a worksheet list through the legacy data form.
- Observed behavior
- Excel reports that it cannot extend the table or database.
Identify the worksheet and list used by the data form, and check whether the error occurs when adding a record. Look for content immediately below the list that could prevent it from expanding.
Restructure the source list and reopen the data form
Use this approach when the source list has extra rows, missing headers, gaps, or content blocking its expansion.
Open the source worksheet and check that the list has a header in every column, followed by contiguous records without blank rows. For this workbook, try placing the headers in row 1 if an extra row above the list is causing the error.
Check the cells immediately below the list and move obstructing content elsewhere if it prevents the list or table from expanding. Leave enough blank rows for new records.
Click inside the list. If it is an Excel table, use Table Design > Resize Table to verify that the headers and existing records are included. Otherwise, select the list and use Insert > Table to create a table, confirming that it has headers.
Select a cell in the list and click Form on the Quick Access Toolbar. If Form is not available there, add it through File > Options > Quick Access Toolbar, choosing Commands Not in the Ribbon.

Launch the worksheet data form with a VBA macro
Use a macro when the workbook is designed to open the form directly for a specific worksheet.
Work with spreadsheet lists in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and compatibility with common Excel formats, making it easy to move everyday workbook work to WPS. It does not fix Excel's legacy data form error.

Frequently Asked Questions
Why can't Excel extend my table when I add a record?
Content immediately below the list, an incorrectly defined table range, or an irregular list layout can interfere with adding records. Inspect the cells below the list and use Table Design > Resize Table to check its range.
Does the source list have to start in row 1?
Not necessarily. Excel can use lists elsewhere on a worksheet, but moving headers to row 1 can help troubleshoot this particular layout. Make sure the list has headers and contiguous records.
Where is the Form command in Excel?
If Form is not on the Quick Access Toolbar, go to File > Options > Quick Access Toolbar, choose Commands Not in the Ribbon, and add Form. Then select a cell in the list and click Form.
Can I use a data form with more than 32 columns?
No. Excel's legacy data form supports up to 32 columns. Reduce the fields in the source list or enter records directly in the worksheet.
Will the VBA macro work if the source worksheet is hidden?
The form may be launched without manually unhiding the sheet in some workbook setups. If ShowDataForm fails on a hidden sheet, make the sheet visible and test the macro again.




