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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Macro Code to Enter Intranet's Login/Pass?

Status
Not open for further replies.

polaro

MIS
Joined
Jul 22, 2008
Messages
1
Location
CA
Hello. I have an Excel macro which opens the Excel files, refreshes all contents, saves and closes them. When I launch the macro, the following prompt appears once:

Connect to Intranet
User name
Password

Remember my password

OK Cancel


How do I mimic the login/password entry in VBA to eliminate the need to interact with the prompt?

Thanks

PS: Below is a small fragment of the macro. The prompt starts when the macro tries to access the intranet file.

Application.WindowState = xlMinimized
Workbooks.Open Filename:= "ActiveWorkbook.RefreshAll
ActiveWorkbook.Save
ActiveWorkbook.Close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top