Returns a group using its index or its name from the Groups collection.
Parameters:
iIndex
The index or the name of the Group to retrieve from the collection of groups.
As a numerics, this index is the rank of the Group in the collection.
The index of the first Group in the collection is 1, and
the index of the last Group is Count.
As a string, it is the name you assigned to the Group.
Returns:
The retrieved Group
Example:
This example retrieves in ThisGroup the ninth Group,
and in ThatGroup the Group named
Group3 from the TheGroups collection.
Dim ThisGroup As Group
Set ThisGroup = TheGroups.Item(9)
Dim ThatGroup As Group
Set ThatGroup = TheGroups.Item("Group3")
The index or the name of the Group to retrieve from he collection of groups.
As a numerics, this index is the rank of the Group in the collection.
The index of the first Group in the collection is 1, and
the index of the last Group is Count.
As a string, it is the name you assigned to the Group.
Example:
The following example removes the tenth Group and the Group named
Group2 from the TheGroups collection.