Results 1 to 2 of 2

Thread: outlook email lan login

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Cleveland, OH
    Posts
    4

    Exclamation

    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

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    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
  •  



Click Here to Expand Forum to Full Width