ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to Switch the ODBC connection in Excel (https://www.excelbanter.com/excel-programming/331471-how-switch-odbc-connection-excel.html)

Pete Petersen

How to Switch the ODBC connection in Excel
 
Is there a way to switch the data source of a querry in Excel?

We have moved our reporting functions of Excel to a new server and we want
to point some old reports to that new server without recreating the sheets.
Is there a way to do that?

Thanks

Dick Kusleika[_4_]

How to Switch the ODBC connection in Excel
 
Pete

You need to change the Connection property of the QueryTable object. You
may also need to change the CommandText property if it contains the path.
See here

http://www.dicks-clicks.com/excel/Ex...htm#ChangeConn

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Pete Petersen wrote:
Is there a way to switch the data source of a querry in Excel?

We have moved our reporting functions of Excel to a new server and we
want to point some old reports to that new server without recreating
the sheets. Is there a way to do that?

Thanks





All times are GMT +1. The time now is 09:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com