I have an Excel spreadsheet which runs an instance of Microsoft Query in a table within that spreadsheet. What I want to be able, currently, to change/update is the user login information. I set everything up on my machine, and it worked fine. However, when another person tries to use the same, it is attempting to login as me (which won't work).
I need to change the user authentication to just look at the windows authentication, or else set those values from Windows programatically. I tried looking at the QueryTable object in Excel help, but did not see a property for the login credentials (I might have just overlooked it).
This is what I would like to say:
Or either set some option to look at the local machine's login info.
Does anyone know the method for doing this, or if there is one? I sure hope there is!![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thanks!
--
"If to err is human, then I must be some kind of human!" -Me
I need to change the user authentication to just look at the windows authentication, or else set those values from Windows programatically. I tried looking at the QueryTable object in Excel help, but did not see a property for the login credentials (I might have just overlooked it).
This is what I would like to say:
Code:
Sheets("Query").LoginName = ntuser
Sheets("Query").Password = ntuserPassword
Does anyone know the method for doing this, or if there is one? I sure hope there is!
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Thanks!
--
"If to err is human, then I must be some kind of human!" -Me