D
David C. Holley
I'm trying to write a procedure that will loop through the various
AppointmentItems in my Calendar folder looking for AI's that have a
specific value in a user defined property.
1. Is Outlook.MAPIFolder the preferred datatype to use when working with
my Calendar folder as an object?
Dim objOutlook As Outlook.Application
Dim nms As Outlook.NameSpace
Dim targetCalendar As Outlook.MAPIFolder
Set objOutlook = CreateObject("Outlook.application")
Set nms = objOutlook.GetNamespace("MAPI")
Set targetCalendar = nms.GetDefaultFolder(olFolderCalendar)
2. Can you please help me with the using the .Restrict method of the
..Items collection of the folder object? I have NEVER been able to
properly format the string. The specific items that I'm looking for will
have a value in a user defined property named dbAccessId. Hence I'm
looking for values that are not Null or a zero length string.
AppointmentItems in my Calendar folder looking for AI's that have a
specific value in a user defined property.
1. Is Outlook.MAPIFolder the preferred datatype to use when working with
my Calendar folder as an object?
Dim objOutlook As Outlook.Application
Dim nms As Outlook.NameSpace
Dim targetCalendar As Outlook.MAPIFolder
Set objOutlook = CreateObject("Outlook.application")
Set nms = objOutlook.GetNamespace("MAPI")
Set targetCalendar = nms.GetDefaultFolder(olFolderCalendar)
2. Can you please help me with the using the .Restrict method of the
..Items collection of the folder object? I have NEVER been able to
properly format the string. The specific items that I'm looking for will
have a value in a user defined property named dbAccessId. Hence I'm
looking for values that are not Null or a zero length string.