|
-
Aug 28th, 2000, 10:38 AM
#1
Thread Starter
New Member
Anyone have a way to supply the password to outlook
when the dialog pops up for name/domain/password? Outlook finds name and domain in registry but always prompts for
password even though already logged in to windows network.
rlp
-
Aug 28th, 2000, 11:00 AM
#2
Addicted Member
Sure!
Set objOutlApp = CreateObject("Outlook.Application")
If Err.Number = 0 Then
Set objNameSpace = objOutlApp.GetNamespace("MAPI")
If tfLogging = True Then
App.LogEvent "Mapi Object Status=" & Err.Number
End If
If Err = 0 Then
objNameSpace.Logoff
objNameSpace.Logon sProfile, sPassword, False, True
The key to the answer to your question is the "false" in the last line of the code. That line arguement determines whether a login dialog is displayed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|