Class Reminders (Outlook VBA)
Contains a collection of all the Reminder objects in a Microsoft Outlook application that represent the reminders for all pending items. To use a Reminders class variable it first needs to be instantiated, for example
Dim rmns as Reminders
Set rmns = Reminders
For Each
Here is an example of processing the Reminders items in a collection.
Dim rmn As Reminder
For Each rmn In Reminders
Next rmn
Class
Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for
Dim oocsClass As OlObjectClass
oocsClass = Reminders.Class
Count
Returns a Long indicating the count of objects in the specified collection.
Dim lngCount As Long
lngCount = Reminders.Count
Item
Returns a Reminder object from the collection.
Item (Index)
Index: Either the index number of the object, or a value used to match the default property of an object in the collection.
Dim rmn As Reminder
Set rmn = Reminders(Index:=1)
Remove
Removes an object from the collection.
Remove (Index)
Index: The 1-based index value of the object within the collection.
Dim lngIndex As Long: lngIndex =
Reminders.Remove Index:=lngIndex
Session
Returns the NameSpace object for the current session.
The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements do the same function: