B
Bingo
' Outlook Object Code without Redemption
' To get access to a shared folder
Set oMapiRecipient = oNsp.CreateRecipien(sMailboxName)
oMapiRecipient.Resolve
Set oMapiInbox = oNsp.GetSharedDefaultFolder
(oMapiRecipient, 6) ' 6 olFolderInbox
'This triggers the security popup.
'Then I use Redemption to bypass this popup.
Set oRdpUtil = CreateObject("Redemption.MAPIUtils")
Set oRdpRecipient = oRdpUtil.CreateRecipient(MailboxName)
oRdpRecipient.Resolve
'No popup, great
'But I got an error at
Set oMapiInbox = oNsp.GetSharedDefaultFolder
(oRdpRecipient, 6) ' 6 olFolderInbox
The error message is:
Run-time error '-2147352573(80020003)':
The property does not exist. The field you want to modify
is not valid for this type of item.
Anything wrong here? Thanks.
' To get access to a shared folder
Set oMapiRecipient = oNsp.CreateRecipien(sMailboxName)
oMapiRecipient.Resolve
Set oMapiInbox = oNsp.GetSharedDefaultFolder
(oMapiRecipient, 6) ' 6 olFolderInbox
'This triggers the security popup.
'Then I use Redemption to bypass this popup.
Set oRdpUtil = CreateObject("Redemption.MAPIUtils")
Set oRdpRecipient = oRdpUtil.CreateRecipient(MailboxName)
oRdpRecipient.Resolve
'No popup, great
'But I got an error at
Set oMapiInbox = oNsp.GetSharedDefaultFolder
(oRdpRecipient, 6) ' 6 olFolderInbox
The error message is:
Run-time error '-2147352573(80020003)':
The property does not exist. The field you want to modify
is not valid for this type of item.
Anything wrong here? Thanks.