In a piece of code using web queries I normally use the F1 sheet
But when I started a similar code using another F2 sheet I have an error I do not understand:
Please explain why the first set works and the second one doesn't,
I get
"argument or procedure call incorrect (error 5)"
Both sheets do exist
Set qt =Worksheets("F1").QueryTables.Add(Connection:="URL; Destination:=Range("A1"))
Set qt = Worksheets("F2").QueryTables.Add(Connection:="URL; Destination:=Range("A1"))
But when I started a similar code using another F2 sheet I have an error I do not understand:
Please explain why the first set works and the second one doesn't,
I get
"argument or procedure call incorrect (error 5)"
Both sheets do exist
Set qt =Worksheets("F1").QueryTables.Add(Connection:="URL; Destination:=Range("A1"))
Set qt = Worksheets("F2").QueryTables.Add(Connection:="URL; Destination:=Range("A1"))