ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel query (https://www.excelbanter.com/excel-discussion-misc-queries/120257-excel-query.html)

narp

excel query
 
I setup an excel query from an excel source. How do I see what excel
worksheet is my source?
--
narp

Ron Coderre

excel query
 
Try this:

Right-click on the data table
Select: Edit Query
When MS Query opens, click the [SQL] button
Is the complete file path displayed in the SQL?

Example:
SELECT rngMyData.Name, rngMyData.Year, rngMyData.Amounts
FROM `C:\Data\TestExcelList`.rngMyData rngMyData

In that, case the source file is:
C:\Data\TestExcelList.xls

Note: MS Query truncates the xls file extension

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"narp" wrote:

I setup an excel query from an excel source. How do I see what excel
worksheet is my source?
--
narp


narp

excel query
 
When I do that is gives me the tab name but not the worksheet file name/path
--
narp


"Ron Coderre" wrote:

Try this:

Right-click on the data table
Select: Edit Query
When MS Query opens, click the [SQL] button
Is the complete file path displayed in the SQL?

Example:
SELECT rngMyData.Name, rngMyData.Year, rngMyData.Amounts
FROM `C:\Data\TestExcelList`.rngMyData rngMyData

In that, case the source file is:
C:\Data\TestExcelList.xls

Note: MS Query truncates the xls file extension

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"narp" wrote:

I setup an excel query from an excel source. How do I see what excel
worksheet is my source?
--
narp



All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com