Hi,
How can I find appointments with [DURATION]?
Printable View
Hi,
How can I find appointments with [DURATION]?
What is Appointment? Regarding what? in which application?
Please give more details.
Sorry,
In Outlook items...
Normaly I search with START en END,
but I now got only the day and not the time and I know the duration of the appointment.
I've tried this:
But It won't find any appointment of 150 minutes.VB Code:
Set myNamespace = myOlApp.GetNamespace("MAPI") Set myFolder = myNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar) Set Appointment = myFolder.Items.Find("[Duration] = 150")
And I'm definitely sure I got at least one!
Verify first that you have at least one item in your default calendar with a duration of 150 minutes. Note, Duration is in munites and not hours or time.