logo
search
Power Query Problems

Fix Excel.CurrentWorkbook Not Showing Tables in Power Query

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user's Power Query is failing to load existing Excel tables because the Excel.CurrentWorkbook function returns no results.

Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to retrieve data from an existing Excel table using the Excel.CurrentWorkbook() function in Power Query.
Observed behavior
The query returns empty results or no tables, typically because the table is stored in a different workbook than the query itself.
Before you start

Before troubleshooting, verify the exact file name and location of both the workbook containing your target data table and the workbook where you are building the query.

Solution 1Recommended

Consolidate the Query and Table into the Same Workbook

The Excel.CurrentWorkbook function strictly references the workbook where the query itself is stored. To fix the issue, the table and query must reside in the exact same file.

When you use Excel.CurrentWorkbook(), Power Query looks for tables and named ranges within the specific file hosting the query. If your source data table is in 'Data.xlsx' but your query is being created in 'Report.xlsx', the function will not find the table and will return an empty result.

1
Verify table location

Open the workbook where your target Excel table is located. Ensure the data is actually formatted as a Table (Insert > Table) and note the file name.

2
Check query location

Identify the workbook where you are currently writing or executing the Power Query.

3
Move the table or the query

Either copy your source data table into a new sheet within the query's workbook, or recreate your Power Query inside the workbook that currently holds the data table.

4
Refresh the query

Once the table and query share the same workbook, open the Power Query Editor, click 'Refresh Preview', and your table will now appear in the Excel.CurrentWorkbook results.

Querying External Workbooks: If you must keep the query and table in separate workbooks, do not use Excel.CurrentWorkbook(). Instead, use the 'Get Data > From File > From Workbook' option, which utilizes the Excel.Workbook() function to read external files.
Free Microsoft Office alternative

Process Data Seamlessly with WPS Office

If you are struggling with complex Power Query functions and cross-workbook data referencing in Microsoft Excel, consider switching to WPS Office. It offers a lightweight, highly compatible spreadsheet application to manage, analyze, and visualize your data effortlessly without the steep learning curve.

  1. 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
  2. 2. Open Multiple Workbooks: Launch WPS Spreadsheet and easily open multiple .xlsx files in a convenient tabbed interface.
  3. 3. Reference Data Easily: Use standard formulas like VLOOKUP or cross-workbook referencing to combine your data effortlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Intuitive data processing and cross-sheet analysis tools without complex query languages.Lightweight design ensuring fast loading times for large workbooks.Free to use with a familiar, user-friendly tabbed interface.
microsoft office alternative - wps office

Frequently Asked Questions

How do I query data from a different Excel workbook?

Instead of using Excel.CurrentWorkbook(), use the 'Get Data > From File > From Workbook' feature in Excel. This generates the Excel.Workbook(File.Contents("filepath")) function to safely extract tables from external files.

Why does my named range not appear in Excel.CurrentWorkbook?

Excel.CurrentWorkbook will only list named ranges and tables that exist in the exact workbook where the query is saved. Verify that your named range is defined in the current file, not an external one.

Does Excel.CurrentWorkbook update automatically when I add new tables?

Yes, if the new tables are created within the same workbook as the query, they will be included in the Excel.CurrentWorkbook() output upon refreshing the query.