J
John Lee
I'm using OOM in Outlook 2000 to access mailboxes. After the machine is
updated with an Outlook Security Update, I could not access the properties
of the olNameSpance object. Below is the section of code having the
problem. Any idea how to work around the new security update? OOM is used
because my code needs to access users' calendars based on the access given
to my login profile through the calendar delegate setup.
'------------------------------------------------------------------
Dim olApp
Dim olNameSpace
Set olApp = CreateObject("Outlook.Application")
Set olNameSpace = olApp.GetNamespace("MAPI")
olNameSpace.Logon "MyOutlookProfile", "", False, True
' The following line does not work anymore.
MsgBox olNameSpace.CurrentUser
If Not olNameSpace Is Nothing Then
olNameSpace.Logoff
Set olNameSpace = Nothing
End If
olApp.Quit
Set olApp = Nothing
'------------------------------------------------------------------
Thanks for any feedback / comments in advance.
John
updated with an Outlook Security Update, I could not access the properties
of the olNameSpance object. Below is the section of code having the
problem. Any idea how to work around the new security update? OOM is used
because my code needs to access users' calendars based on the access given
to my login profile through the calendar delegate setup.
'------------------------------------------------------------------
Dim olApp
Dim olNameSpace
Set olApp = CreateObject("Outlook.Application")
Set olNameSpace = olApp.GetNamespace("MAPI")
olNameSpace.Logon "MyOutlookProfile", "", False, True
' The following line does not work anymore.
MsgBox olNameSpace.CurrentUser
If Not olNameSpace Is Nothing Then
olNameSpace.Logoff
Set olNameSpace = Nothing
End If
olApp.Quit
Set olApp = Nothing
'------------------------------------------------------------------
Thanks for any feedback / comments in advance.
John