Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to include a password in VBA routine

Status
Not open for further replies.

hopelessliar

Technical User
Apr 29, 2002
89
GB
I have a macro that looks like this:

Workbooks.Open FileName:= _
"C:\blah_blah.xls", _
UpdateLinks:=3
Application.Run "blah_blah.xls!DDSCPTUpload"
ActiveWorkbook.Save
ActiveWindow.Close

The application DDSCPTupload requires a password in order to connect to an external database and upload. Is there a way of including this in the code?? (the lack of security involved really doesn't matter)

Any help appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top