Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Switching ODBC sources in Excel 2007

I use Excel 2003 extensively with ODBC and MS Query to retrieve data from an
external accounting program. Most of my worksheets have multiple external
data queries.

I recently upgraded to Excel 2007 and while I love many of the improvements
relating to external data connections, there is one thing I can't figure out.
With Excel 2003, you could use a macro to swap out or change the data
sources for multiple external queries all at once (see KB 816562). I'm
trying to determine if it's possible to do the same with Excel 2007. I can
individually edit the connection string for each external data connection to
point to a new data source but need to be able to swap them all at once.

Anyone have any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Switching ODBC sources in Excel 2007

I usually now modify ws.listobjects(1).querytable.connection rather than
ws.querytable(1).connection. You should be able to modify the 'for each'
loop in the kb article you referenced.

"MichaelS" wrote:

I use Excel 2003 extensively with ODBC and MS Query to retrieve data from an
external accounting program. Most of my worksheets have multiple external
data queries.

I recently upgraded to Excel 2007 and while I love many of the improvements
relating to external data connections, there is one thing I can't figure out.
With Excel 2003, you could use a macro to swap out or change the data
sources for multiple external queries all at once (see KB 816562). I'm
trying to determine if it's possible to do the same with Excel 2007. I can
individually edit the connection string for each external data connection to
point to a new data source but need to be able to swap them all at once.

Anyone have any ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Data Sources on Z (depth) axis in Excel 2007 Nicole Charts and Charting in Excel 0 March 5th 08 02:25 PM
Pivottables - Can i consolidate 2 Data sources in Excel 2007? Kevin Clark[_2_] Excel Discussion (Misc queries) 4 January 8th 08 12:32 AM
ODBC Excel 2007 Jon Kreiss Excel Discussion (Misc queries) 2 December 20th 07 06:01 PM
Excel 2007 and External Data Sources Bettie Claxton Excel Discussion (Misc queries) 0 August 15th 07 04:56 PM
Pivot tables, external data sources and ODBC links plato Excel Worksheet Functions 0 January 17th 05 05:07 PM


All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"