Data Import & Export

How to Enable the Disabled New Database Query Command in Excel

Aamir Naveed AkramAamir Naveed Akram Nov 3, 2026 869 views

Question details

The user needs to enable the New Database Query command in Excel, which is currently greyed out or completely disabled.

How to Enable the Disabled New Database Query Command in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to import or query data from an external database into an active Excel worksheet.
Observed behavior
The New Database Query command under the Data tab is disabled and cannot be clicked.
Before you start

Ensure you have the necessary passwords if your Excel workbook was shared or protected by another user, as you may need them to unlock editing features.

Solution 1Recommended

Unprotect the Active Worksheet

The most common reason for the Database Query command being disabled is that the current worksheet has editing restrictions enabled.

When a worksheet is protected in Excel, structural changes and external data imports are automatically disabled to prevent unauthorized modifications to the document.

1
Navigate to the Review Tab

Open your Excel workbook and click on the 'Review' tab located in the top ribbon.

2
Unprotect Sheet

Click on the 'Unprotect Sheet' button. If the document author set a password, you will be prompted to enter it now.

3
Verify the Command

Go back to the 'Data' tab and check if the 'New Database Query' command is now active and clickable.

Unprotect the Active Worksheet
Password Required: If you do not know the password used to protect the sheet, you will need to request it from the document's creator.
Free Microsoft Office alternative

Try WPS Office for Seamless Data Management

If Microsoft Excel continues to disable essential features like the New Database Query or requires expensive software updates, consider switching to WPS Office. It provides a highly compatible, free alternative with robust spreadsheet and data handling capabilities.

Fully compatible with Microsoft Excel formats, including .xlsx, .xls, and .csv.Free to use with a familiar, easy-to-navigate tabbed interface.Robust data import and export tools without restrictive worksheet locking bugs.Lightweight installation that runs smoothly on older devices and multiple operating systems.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the entire Data tab greyed out in my Excel workbook?

The Data tab or specific commands within it, like New Database Query, usually grey out when the worksheet is protected, multiple sheets are grouped together, or a cell within a specialized element (like a PivotTable) is actively selected.

Does unprotecting an Excel sheet delete my data?

No, unprotecting a worksheet simply removes the editing restrictions placed on the cells. Your data, formulas, macros, and formatting will remain entirely intact.

What should I do if the Unprotect Sheet option is also disabled?

If 'Unprotect Sheet' is disabled, the entire workbook might be protected or marked as final. Go to File > Info and check if 'Protect Workbook' is enabled, or click 'Edit Anyway' if the file opened in Protected View.

Can an outdated version of Excel cause the Database Query to fail?

Yes, known software bugs in older builds of Microsoft Excel can cause ribbon commands to freeze or remain disabled. Installing the latest Office updates via File > Account > Update Options often resolves these glitches.