The same applies to "Sql", this word is also reserved in vba (QueryTables collection), e.g.:
It's true that nothing 'terrible' happens, but ... who knows ...![]()
ActiveSheet.QueryTables.Add(Connection:=connstring, Destination:=Range("A1"), Sql:=sqlstring)
Bookmarks