Sub Web_Query()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & Range("A1"), _
Destination:=Range("B1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
(spelling mistake, can't find edit button?)but I just don't understand
Sub Web_Query_All_Sheets()
Dim ws As Worksheet
Dim qt As QueryTable
For Each ws In Worksheets
With ws
Set qt = .QueryTables.Add(Connection:="URL;" & .Range("A1").Value, Destination:=.Range("B1"))
With qt
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End With
Next
End Sub