This is the code for my query:
WEB
1
http://finance.google.com/finance?fstype=ii&q=["Ticker"]
Selection=EntirePage
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
Its supposed to refresh several times. I have "on error resume next" in my code so it will skip one query if that isn't working. I have it refresh 3 times before it gives up on that ticker. So it refreshed 30 times for 10 different tickers (3 times each) and got nothing. What is going on?
Sometimes this works with excel 2003. It works a bit more often with excel 2002. Closing running programs sometimes helps, sometimes not.
It also gets data from yahoo. Sometimes it gets half the yahoo data but no google data, sometimes the other way around. Sometimes it gets all yahoo data but no google data.
2007-09-11
04:47:06
·
3 answers
·
asked by
bob135
4
in
Computers & Internet
➔ Programming & Design
To refresh I use this code:
Range("GoogleWebData").
QueryTable.Refresh
BackgroundQuery:=False
2007-09-11
04:47:54 ·
update #1
I looked at the particular line of code, it just points to the web query refresh code. The thing that really gets me is that the thing that causes the error is different most of the time.
2007-09-12
05:25:30 ·
update #2