property Components.Enumerate (Mask as String) as Variant
Enumerates the components in the collection whose name matches the giving mask.

TypeDescription
Mask as String A String expression that specifies the mask of the components to be requested. 

The Mask parameter can include:

  • '?' for any single character
  • '*' for zero or more occurrences of any character
  • '#' for any digit character
Variant A safe array of Component objects whose name matches the giving mask.
Use the Enumerate property to enumerate the components giving a mask. The Item / Count properties can be used to enumerate the Components collection as well as for each statement. 

The following code enumerates the components of the root component, that starts with VEV:

Dim c As Variant
For Each c In ICalendar1.Root.Components.Enumerate("VEV*")
    Debug.Print "Name " & c.Name
Next