Help with QueryTable and using the ActiveCell

Lowgrey

New Member
Joined
Apr 17, 2006
Messages
7
I'm calling in data from a webpage, but I need the "Destination:=Range" to be the active cell on the spreadsheet. I tried every combination of "Destination:=ActiveCell" that I could think of, and the Query just doesn't like it.

Any ideas? Here's the copy of the code below. The "Destination:=Range("G1")" needs to accept the current active cell on the spreadsheet, or it needs to be a variable pointing to the cell.


With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.xxx.com/sti_counters.html", Destination:=Range("G1") _
)

Thanks!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,203,605
Messages
6,056,262
Members
444,853
Latest member
sam69

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