Class BuildingBlockType (Word VBA)

The class BuildingBlockType represents a type of building block. Each BuildingBlockType object is a member of the BuildingBlockTypes collection.

To use a BuildingBlockType class variable it first needs to be instantiated, for example

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

The following procedures can be used to set variables of type BuildingBlockType: BuildingBlock.Type, BuildingBlockTypes.Item and Category.Type.

For Each

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

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


Returns a Categories collection that represents the categories for a building block type.

Dim ctgsCategories As Categories
Set ctgsCategories = CustomizationContext.BuildingBlockTypes(1).Categories


Returns a Long that represents the position of an item in a collection.

Dim lngIndex As Long
lngIndex = CustomizationContext.BuildingBlockTypes(1).Index


Returns a String that represents the localized name of a building block type.

Dim strName As String
strName = CustomizationContext.BuildingBlockTypes(1).Name