How to Enable the Disabled New Database Query Command in Excel
Question details
The user needs to enable the New Database Query command in Excel, which is currently greyed out or completely disabled.

- 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.
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.
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.
Open your Excel workbook and click on the 'Review' tab located in the top ribbon.
Click on the 'Unprotect Sheet' button. If the document author set a password, you will be prompted to enter it now.
Go back to the 'Data' tab and check if the 'New Database Query' command is now active and clickable.

Check Cell Selection and Test a New Workbook
Sometimes the command is unavailable due to an invalid cell selection or file-specific corruption.
Install Available Office Updates
Outdated versions of Microsoft Excel may contain bugs that prevent data query features from working properly.
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.

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.




