Excel Query

nb4me

New Member
Joined
Dec 27, 2010
Messages
10
When I save a range as a table or when I create a dynamic range it works perfectly.......but the range isn't available when I try to import that range(table) using microsoft query from another workbook. When I change it to a regular named range, It is on the query list and I can import it. Am I doing something wrong?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You are doing nothing wrong. That is how it is. Dynamic (volatile) defined names don't work for querying.

VBA may be an option to create non-dynamic named ranges.
Or if the data has headers in row 1 & data directly underneath you can use a worksheet name. LIke this, FROM [worksheetname$]

cheers
 
Upvote 0
You are doing nothing wrong. That is how it is. Dynamic (volatile) defined names don't work for querying.

VBA may be an option to create non-dynamic named ranges.
Or if the data has headers in row 1 & data directly underneath you can use a worksheet name. LIke this, FROM [worksheetname$]

cheers

Hi Fazza,

Thanks so much for your reply. I was just wondering how to implement your suggestion (about worksheetname$) if I can't find the range on the list of available ranges to import.

Thanks again.
 
Upvote 0
I should have explained: near the beginning of the wizard there is a choice. Something like 'Options'. Select that & then 'system tables'. After OK'ing that, you will see worksheet names as well as non-dynamic defined names in the available data sources. (Or you can enter it directly in the SQL. Either in MS Query or via VBA.)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top