Salman Shamim
New Member
- Joined
- Jun 15, 2017
- Messages
- 4
Hello Dear All,
There is a table in excel 2016 made out of a SQL Query which is linked to a few pivot tables, each month we open the SQL query in Query Editor and change the parameters and save. Later we refresh all the pivot tables to update.
My Question is: Is there a way to change or update that SQL Query in VBA like inputting dates in a cell and pressing a button, where the parameter is updated and the table is refreshed.
We use excel 2016 and the database is SQL SERVER 2014.
Your assistance will be highly appreciated and will be a lifesaver.
There is a table in excel 2016 made out of a SQL Query which is linked to a few pivot tables, each month we open the SQL query in Query Editor and change the parameters and save. Later we refresh all the pivot tables to update.
My Question is: Is there a way to change or update that SQL Query in VBA like inputting dates in a cell and pressing a button, where the parameter is updated and the table is refreshed.
We use excel 2016 and the database is SQL SERVER 2014.
Your assistance will be highly appreciated and will be a lifesaver.