Class RepeatingSectionItemColl (Word VBA)

The class RepeatingSectionItemColl represents the collection of RepeatingSectionItem objects. To use a RepeatingSectionItemColl class variable it first needs to be instantiated, for example


Dim rsi as RepeatingSectionItemColl
Set rsi = ActiveDocument.Range.ContentControls(1).RepeatingSectionItems

Count

Returns a Long that represents the number of repeating section items in the collection.


Dim lngCount As Long
lngCount = ActiveDocument.Range.ContentControls(1).RepeatingSectionItems.Count

Item

Returns an individual repeating section item.

Item (Index)

Index: The index number of the item in the collection.


Dim rsiRepeatingSectionItemColl As RepeatingSectionItem
Set rsiRepeatingSectionItemColl = ActiveDocument.Range.ContentControls(1).RepeatingSectionItems(Index:=1)