Use GetSharedDefaultFolder using Redemption

D

Dave

Is there anyway to then achieve this without any security
warnings popping up using Redemption?


Dim myNameSpace, myRecipient, CalendarFolder As object

myNamespace = Application.GetNamespace("MAPI")
myRecipient = myNamespace.CreateRecipient("Name")
myRecipient.Resolve
If myRecipient.Resolved Then
CalendarFolder := myNameSpace.GetSharedDefaultFolder
(myRecipient, olFolderCalendar)
end If
 
K

Ken Slovak - [MVP - Outlook]

Redemption's MAPIUtils has a CreateRecipient method that returns a
SafeRecipient that can be used with GetSharedDefaultFolder without setting
off the security prompts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top