Hallo Viorel-1,
I start off thus ...
Set objOwner = oNS.CreateRecipient("name@mydomain.com")
objOwner.resolve
if objOwner.Resolved Then
Set oAppointments = oNS.GetSharedDefaultFolder(objOwner, olFolderCalendar)
Then I apply the filter string ...
strFilter = "[Start] >='" & strPeriodFrom & "' AND [End] < '" & strPeriodUntil & "'"
... with this syntax ...
Set oFilterAppointments = oAppointments.Items.Restrict(sFilter)
Which seems to work for the time-period required but also returns entries (duplicates of valid entries for relevant users) assigned to other users who had no appointments in that period.
This is weird because surely objOwner in the "Set oAppointments=" line should limit the items to only the required user?
Yours,
Alan