When recording a macro for specific web query,
it works fine when it looks like this after recording:
With ActiveSheet.QueryTables.Add(Connection:= _ “URL;http://webpage2.com/gardening/2013/3/29/workday”, Destination:=Range(“A3”)) ‘works OK
But specified dates are required to be entered, so a Cell reference is used from a active work sheet
With ActiveSheet.QueryTables.Add(Connection:= _ “URL;http://webpage2.com/gardening/” & Range(“A1”) & , Destination:=Range(“A3”))
But it errors in red.
Even though the cell Value in Sheet1 A1 is exactly the same
2013/3/29/workday
Why does it red syntax error ?
Thanks