EDN Admin
Well-known member
Hi-
I am working on a task where i need to merge 2 calendars from seperate email accounts on Outlook. I am able to resolve 1st email but when I trying to resolve the second email, i get the message "Cannot resolve Recipient")
I am on VPN for both the profiles (email 1 - client 1 vpn and email 2 - client 2 vpn)
Attached is the code
Public Sub LoadLst(ByRef lst As Windows.Forms.ListView, ByVal Recp As String)
lst.Items.Clear()
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
Dim rsp As Outlook.Recipient
rsp = oNS.CreateRecipient(Recp)
rsp.Resolve()
If rsp.Resolve Then
Dim oCalander As Outlook.MAPIFolder = oApp.GetNamespace("MAPI").GetSharedDefaultFolder(rsp, Outlook.OlDefaultFolders.olFolderCalendar)
Please help on what am I doing wrong and what could be the problem
View the full article
I am working on a task where i need to merge 2 calendars from seperate email accounts on Outlook. I am able to resolve 1st email but when I trying to resolve the second email, i get the message "Cannot resolve Recipient")
I am on VPN for both the profiles (email 1 - client 1 vpn and email 2 - client 2 vpn)
Attached is the code
Public Sub LoadLst(ByRef lst As Windows.Forms.ListView, ByVal Recp As String)
lst.Items.Clear()
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
Dim rsp As Outlook.Recipient
rsp = oNS.CreateRecipient(Recp)
rsp.Resolve()
If rsp.Resolve Then
Dim oCalander As Outlook.MAPIFolder = oApp.GetNamespace("MAPI").GetSharedDefaultFolder(rsp, Outlook.OlDefaultFolders.olFolderCalendar)
Please help on what am I doing wrong and what could be the problem
View the full article