property Groups.ItemByIndex (Index as Long) as Group
Returns a specific Group of the Groups collection, giving its index.

TypeDescription
Index as Long A long expression that specifies the index of the Group being requested
Group A Group object being requested
The ItemByIndex/Count properties can be used to enumerate the Groups as they has been added. The Count property counts the number of Group objects in the Groups collection. The ItemByPos/Count properties can be used to enumerate the Groups as they are displayed. The Visible property specifies whether a Group is visible or hidden. The ItemByPos property gives the Group by position, no matter if it is visible or hidden. The Item property can be used to access a Group object giving its identifier. Use the Add method of the Groups collection to add new groups to the control.