Class BuildingBlockTypes (Word VBA)

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


Dim bbts as BuildingBlockTypes
Set bbts = CustomizationContext.BuildingBlockTypes

For Each

Here is an example of processing the BuildingBlockTypes items in a collection.


Dim bbt As BuildingBlockType
For Each bbt In CustomizationContext.BuildingBlockTypes
	
Next bbt

Count

Returns the number of items in the BuildingBlockTypes collection.


Dim lngCount As Long
lngCount = CustomizationContext.BuildingBlockTypes.Count

Item

Returns a BuildingBlockType object that represents the specified item in the collection.

Item (Index)

Index: Specifies the building block type of the item in the collection.


Dim bbt As BuildingBlockType
Set bbt = CustomizationContext.BuildingBlockTypes(Index:=1)