ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Convert to a Parameter Query (https://www.excelbanter.com/excel-programming/303621-convert-parameter-query.html)

Al Eaton

Convert to a Parameter Query
 
I have a web query that was created by going to a web page

http://finance.yahoo.com/q/ks?s=GE

selecting Export to Excel, then selecting the specific data I want to
download. This is the query created:

WEB
1
http://finance.yahoo.com/q/ks?s=GE

Selection=21,24,26,29,32,35,38,41,44,48,52,55,58
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False

The problem is that this does not create a parameter query. For example, if
you use Microsoft's stock quote web query there is a parameter option so
that you can easily change the stock ticker. Is there a way to make the
above query into a parameter query.
--

Al Eaton




Don Guillett[_4_]

Convert to a Parameter Query
 
Have you tried
sym=range("a1")
http://finance.yahoo.com/q/ks?s=GE
http://finance.yahoo.com/q/ks?s=" & sym & ""

--
Don Guillett
SalesAid Software

"Al Eaton" wrote in message
...
I have a web query that was created by going to a web page

http://finance.yahoo.com/q/ks?s=GE

selecting Export to Excel, then selecting the specific data I want to
download. This is the query created:

WEB
1
http://finance.yahoo.com/q/ks?s=GE

Selection=21,24,26,29,32,35,38,41,44,48,52,55,58
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False

The problem is that this does not create a parameter query. For example,

if
you use Microsoft's stock quote web query there is a parameter option so
that you can easily change the stock ticker. Is there a way to make the
above query into a parameter query.
--

Al Eaton






Al Eaton

Convert to a Parameter Query
 


Yes, I defined "a1" as a range named sym and then edited the link. It did
not work.
--

Al Eaton

"Don Guillett" wrote in message
...
Have you tried
sym=range("a1")
http://finance.yahoo.com/q/ks?s=GE
http://finance.yahoo.com/q/ks?s=" & sym & ""

--
Don Guillett
SalesAid Software

"Al Eaton" wrote in message
...
I have a web query that was created by going to a web page

http://finance.yahoo.com/q/ks?s=GE

selecting Export to Excel, then selecting the specific data I want to
download. This is the query created:

WEB
1
http://finance.yahoo.com/q/ks?s=GE

Selection=21,24,26,29,32,35,38,41,44,48,52,55,58
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False

The problem is that this does not create a parameter query. For example,

if
you use Microsoft's stock quote web query there is a parameter option so
that you can easily change the stock ticker. Is there a way to make the
above query into a parameter query.
--

Al Eaton








Don Guillett[_4_]

Convert to a Parameter Query
 
Send, to the address below, and I will have a look.

--
Don Guillett
SalesAid Software

"Al Eaton" wrote in message
...


Yes, I defined "a1" as a range named sym and then edited the link. It did
not work.
--

Al Eaton

"Don Guillett" wrote in message
...
Have you tried
sym=range("a1")
http://finance.yahoo.com/q/ks?s=GE
http://finance.yahoo.com/q/ks?s=" & sym & ""

--
Don Guillett
SalesAid Software

"Al Eaton" wrote in message
...
I have a web query that was created by going to a web page

http://finance.yahoo.com/q/ks?s=GE

selecting Export to Excel, then selecting the specific data I want to
download. This is the query created:

WEB
1
http://finance.yahoo.com/q/ks?s=GE

Selection=21,24,26,29,32,35,38,41,44,48,52,55,58
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False

The problem is that this does not create a parameter query. For

example,
if
you use Microsoft's stock quote web query there is a parameter option

so
that you can easily change the stock ticker. Is there a way to make

the
above query into a parameter query.
--

Al Eaton











All times are GMT +1. The time now is 02:00 PM.

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