Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default maximum as to the csv data that can be downloaded in to Excel

Hello,
When I run a query to download some stock data from Yahoo, (see code
below), I get " Run-time error '1004' An unexpected error has
occurred.
I hit "debug" and "Refresh BackgroundQuery:=False" is
highlighted. This does not happen if there are few symbols but if
there are many symbols I get this error. Is there a maximum as to the
csv data that can be downloaded into Excel? Is there some code I can
add to avoid this error?




With Sheets("sheet1").QueryTables.Add(Connection:="URL; " _
& "http://finance.yahoo.com/d/quotes.csv?s=" & _
symbols & "&f=sn11&e=.csv", _
Destination:=Sheets("sheet1").Range("b3"))


.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With

Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing part(s) of text from downloaded data CAT Excel Worksheet Functions 14 December 11th 08 05:53 AM
Apostrophe In Data Downloaded Tiziano Excel Discussion (Misc queries) 6 February 6th 07 12:26 PM
Data downloaded with green triangle(indentation) dplatz Excel Worksheet Functions 4 June 16th 06 05:44 PM
How do I eliminate leading zeros from downloaded data? Vanessa Excel Worksheet Functions 2 June 27th 05 05:11 PM
how read data downloaded on cd-rw, now show only code? turbobucs New Users to Excel 2 April 1st 05 03:23 PM


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"