Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Problem with Importing Data to Spreadsheet
I am using this code to retrieve data, but it gives me an error on th
"Refresh" line. Error - "Run-time error '1004': Method 'Refresh' of objec "_QueryTable" failed. --------------------------- With Sheet1.QueryTables.Add(Connection:= _ "URL;" + dataWebsiteString, _ Destination:=Range("A1")) .BackgroundQuery = True .TablesOnlyFromHTML = True .Refresh BackgroundQuery:=False .SaveData = True End With --------------------------- The code seems to work for shorter data, but long datas don't work Thanks for any help -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Importing Data from a pre-existing spreadsheet | Excel Discussion (Misc queries) | |||
Problem importing from Google Spreadsheet | Excel Discussion (Misc queries) | |||
Importing data from another spreadsheet to a different format | Excel Discussion (Misc queries) | |||
Importing data, then adding data to the new spreadsheet.. a conund | Excel Discussion (Misc queries) | |||
Importing Data From Another Spreadsheet | Excel Discussion (Misc queries) |