Hi AgentSmith,
I think this would helps you logon to the system.
' Log on using existing session (Visual Basic or VBA)
Set objSession = New MAPI.Session
objSession.Logon NewSession:=False, ShowDialog:=False
' Log on using existing session (VBScript)
Set objSession = CreateObject("MAPI.Session")
objSession.Logon , , False, False
Ramesh
Ramesh Bharatha
|