Pass a URL Parameter from a workbook to a Query

DRSteele

Well-known Member
Joined
Mar 31, 2015
Messages
2,654
Office Version
  1. 365
Platform
  1. Windows
Can someone please help me?

I have the following cell in a workbook. It is a formula that relies on the contents of three cells by using function CONCAT. [FYI. The three cells are the stock symbol (CNQ), the end date (3/30/2016 and the start date (1/12/1995). Note that for some reason yahoo says January is month 0.][TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"]http://real-chart.finance.yahoo.com/table.csv?s=CNQ.TO&d=2&e=30&f=2016&g=d&a=0&b=12&c=1995&ignore=.csv[/TD]
[/TR]
</tbody>[/TABLE]

I would like to create a Parameter out of that and pass it to a Query that goes to that source and downloads the csv file that exists on that webpage. My objective is to enter a stock symbol, an end date and a start date and have the query download the data to the workbook.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,158
Messages
6,176,745
Members
452,741
Latest member
Muhammad Nasir Mahmood

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