I want to have an excel spreadsheet, that when it opens will automatically populate from a SQL database, using specific queries. Each Workbook would use a different query (or multiple queries). Ideally when it is opened, the connection properties to SQL could be changed.
Any idea how to do this?
Best Answer
Of course. Here are the basics.
1) Create a connection (once)
2) Add connection to workbook
3) List and modify connections at anytime