V
Venedict
Hi All,
I'm new in excel pivot table.
I have a client request to write an interface in VB to
call and refresh a pivot table in excel.
Currently the excel file contents is using Microsoft
Query with ODBC to access the SQL server to retrieve
data. This excel file need to deploy to multiple site.
Due to the databasename is diff for each site, every time
they deploy to another site, they need to modify the
excel file.
My question is can i use VB to modify the Microsoft Query
statement to point to correct servername and database? If
possible, anyone have sample code?
Any advice is much appreciated.Thanks.
Regards,
Venedict
I'm new in excel pivot table.
I have a client request to write an interface in VB to
call and refresh a pivot table in excel.
Currently the excel file contents is using Microsoft
Query with ODBC to access the SQL server to retrieve
data. This excel file need to deploy to multiple site.
Due to the databasename is diff for each site, every time
they deploy to another site, they need to modify the
excel file.
My question is can i use VB to modify the Microsoft Query
statement to point to correct servername and database? If
possible, anyone have sample code?
Any advice is much appreciated.Thanks.
Regards,
Venedict