K
kenji4861
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
"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