Class Category (Word VBA)

The class Category represents an individual category of a building block type. To use a Category class variable it first needs to be instantiated, for example


Dim ctg as Category
Set ctg = CustomizationContext.BuildingBlockEntries(1).Category

For Each

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


Dim ctg As Category
For Each ctg In CustomizationContext.BuildingBlockEntries.Categories
	
Next ctg

BuildingBlocks

Returns a BuildingBlocks collection that represents the building blocks for a category.


Dim bbsBuildingBlocks As BuildingBlocks
Set bbsBuildingBlocks = CustomizationContext.BuildingBlockEntries(1).Category.BuildingBlocks

Index

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


Dim lngIndex As Long
lngIndex = CustomizationContext.BuildingBlockEntries(1).Category.Index

Name

Returns the name of the specified object.


Dim strName As String
strName = CustomizationContext.BuildingBlockEntries(1).Category.Name

Type

Returns a BuildingBlockType object that represents the type of building block for a building block category.


Dim bbtType As BuildingBlockType
Set bbtType = CustomizationContext.BuildingBlockEntries(1).Category.Type