Put a line after you create the url
Msgbox strURL
Run it and have a good look at the string created. Copy it and paste it
into the browser and see if it works. Compare it with the browser string
that does work.
I think it would help if you converted numbers to strings so instead of
& 1 & "+" & 27 &
You use
& "1" & "+" & "27" &
Best Regards
David Grugeon
Excel VBA Group Moderator
-----Original Message-----
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] On Behalf
Of David
Sent: Saturday, 29 September 2012 3:10 AM
To: ExcelVBA@yahoogroups.com
Subject: [ExcelVBA] ^VIX
Hello Every One,
Good day I Hope? I am using
Dim objXML As Object
Dim strURL As String
Dim Sym As String
Set objXML = CreateObject("MSXML2.XMLHTTP")
strURL = " http://finance.google.com/finance/historical?histperiod=daily&q=
" _
& Sym & "&startdate=Jan+1%2C+1975" & "&enddate=" _
& 1 & "+" & 27 & "%2C+" & 2010 & "&output=csv"
It brings in the most recent data and the dates do not make a difference.
What I an trying to do it bring in the price history for VOLATILITY S&P 500
(^VIX), but it is failing.
The Sym can not be ^VIX or any combination that I have tried. Any ideas what
I can use to get this to work?
Thanks,
David
------------------------------------
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go
here: http://www.mousetrax.com/techtrax to enter the ezine, then search the
ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------Yahoo! Groups Links
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar