Hello,
I need to import data from an SQL database into an excel spreadsheet.
The query works fine in Microsoft SQL Management Studio, but I don't know how to get VBA to paste it into cell A1 of Sheet1.
I have already created the connection using data-> From other Sources->from SQL server...