Changing a QueryTable data source

  • Thread starter Thread starter Mike Jones
  • Start date Start date
M

Mike Jones

I've set up a QueryTable using "import external data". Works fine, except I
want to change my datasource. When you import, it pulls in your machine
name, hard coded database name, etc. I don't want that stuff. I want this
much

"ODBC;DSN=MyDB;Trusted_Connection=Yes"

Is there a way to change this from the UI? If not, a way to do it
programmatically?

Thanks
 
What I'm seeing is that I can change it programmatically like this, but when
I save my XL spreadsheet, then reopen, its back to how it originally was;
with all the extra, unwanted stuff.

Strange.
 
Mike

Oh, I see. I don't think you can prevent Excel from doing what it wants to
your strings. If you describe your situation and why you want to do this,
maybe someone will have another way to accomplish it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top