Please help. What is the snippet used to pass the user sign on, domain and password when accessing Outlook97 via VB?
Printable View
Please help. What is the snippet used to pass the user sign on, domain and password when accessing Outlook97 via VB?
Try this:
Set OlApp = New Outlook.Application
Set OlApp = CreateObject("Outlook.Application")
Set olNameSpace = OlApp.GetNamespace("MAPI")
olNameSpace.Logoff
olNameSpace.Logon "Login ID", "Password", False, True