Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do i directly edit a connection string in an Excel workbook q.

i need to edit a connection string due to a corporate change in servers.

this change does not allow the query editor(s) to open the query through the
standard Excel defaults.

i'm hoping someone will know a way to edit the connectstring.

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default how do i directly edit a connection string in an Excel workbook q.

The QueryTable.Connection property contains the connection string; I have
never tried changing the connection db this way but it should be possible, I
would go into the immediate pane and try this:

? Sheets("SheetName").QueryTables(1).Connection
- to see what the current string looks like

Sheets("SheetName").QueryTables(1).Connection = "... "
To reset the connection parameters

"SteveCarlston" wrote:

i need to edit a connection string due to a corporate change in servers.

this change does not allow the query editor(s) to open the query through the
standard Excel defaults.

i'm hoping someone will know a way to edit the connectstring.

thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do i directly edit a connection string in an Excel workboo

Thanks,
this did allow me to reconnect. this allowed almost all queries to run
again. the only one that didn't just needed to be relinked.

"K Dales" wrote:

The QueryTable.Connection property contains the connection string; I have
never tried changing the connection db this way but it should be possible, I
would go into the immediate pane and try this:

? Sheets("SheetName").QueryTables(1).Connection
- to see what the current string looks like

Sheets("SheetName").QueryTables(1).Connection = "... "
To reset the connection parameters

"SteveCarlston" wrote:

i need to edit a connection string due to a corporate change in servers.

this change does not allow the query editor(s) to open the query through the
standard Excel defaults.

i'm hoping someone will know a way to edit the connectstring.

thanks!

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
How do I edit directly in a cell - previously F2 Pweter Excel Discussion (Misc queries) 2 February 18th 10 11:14 AM
Pivot4U Excel Add-in - Edit Pivot Tables in Excel Directly [email protected] Excel Discussion (Misc queries) 0 May 30th 08 11:09 PM
edit directly in cell in Excel 2007 Andrea New Users to Excel 5 July 8th 06 03:50 PM
Hiding an SQL connection string in an Excel macro Bob Smith[_2_] Excel Programming 2 November 18th 04 09:37 AM
ado connection string for excel 2002 Priyesh[_2_] Excel Programming 0 January 5th 04 10:02 AM


All times are GMT +1. The time now is 02:32 PM.

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

About Us

"It's about Microsoft Excel"