S
Sylfelin
Hello,
for active the view of other calendar i use this code.
Set myOlApp = CreateObject("Outlook.Application")
Set myNms = myOlApp.GetNamespace("MAPI")
Set myFolder = myNms.GetDefaultFolder(olFolderCalendar)
Set myExplorer = myOlApp.ActiveExplorer
Set myExplorer.CurrentFolder = myFolder
Set myRecipient = myNms.CreateRecipient("Gilles")
Set SharedFolder = myNms.GetSharedDefaultFolder(myRecipient,
olFolderCalendar)
myExplorer.SelectFolder SharedFolder
Set myRecipient = myNms.CreateRecipient("Eric")
Set SharedFolder = myNms.GetSharedDefaultFolder(myRecipient,
olFolderCalendar)
myExplorer.SelectFolder SharedFolder
But for optimize the code, i would find the recipient list .
Can i do it ?
This code is not functionnaly:
'''' For Each myRecipient In myFolder.Items
'''' Debug.Print myRecipient.Name
'''' Next myRecipient
Thank's
for active the view of other calendar i use this code.
Set myOlApp = CreateObject("Outlook.Application")
Set myNms = myOlApp.GetNamespace("MAPI")
Set myFolder = myNms.GetDefaultFolder(olFolderCalendar)
Set myExplorer = myOlApp.ActiveExplorer
Set myExplorer.CurrentFolder = myFolder
Set myRecipient = myNms.CreateRecipient("Gilles")
Set SharedFolder = myNms.GetSharedDefaultFolder(myRecipient,
olFolderCalendar)
myExplorer.SelectFolder SharedFolder
Set myRecipient = myNms.CreateRecipient("Eric")
Set SharedFolder = myNms.GetSharedDefaultFolder(myRecipient,
olFolderCalendar)
myExplorer.SelectFolder SharedFolder
But for optimize the code, i would find the recipient list .
Can i do it ?
This code is not functionnaly:
'''' For Each myRecipient In myFolder.Items
'''' Debug.Print myRecipient.Name
'''' Next myRecipient
Thank's