I have a bunch of SQL queries that I have created in Excel by using cell references as parameters. All the queries are stored as strings in one column. Rather than use the Microsoft Query to create a connection for each SQL query, is there a way that I can have a macro run down the column and execute each one of the queries from each cell and output the result in the cell directly to the right of it?
Thanks
How about using ADODB? I assumed SQL is placed in A1 and below: