External Data Query Parameter - How to Set to Cell in Current Worksheet?

rxp19

New Member
Joined
Jul 4, 2011
Messages
5
I created a query to pull external data.

I set the query to get the value from cell A1.

The problem is that when I attempt to copy and paste the data connection cells from a template to a new worksheet, the query always attempts to pull the data from ='Template'!$A$1, rather than A1 of the current worksheet.

When I enter =A1 in the parameter of the template, it always adds ='Template'$A$1 in the parameter field.

How can I set the parameter of an external data query to cell A1 of the current worksheet?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Do you know if I can write a macro that would force the iqy file to reference cell A1 without having excel append the name of the worksheet template?
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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