BuildingBlock Members (Word)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a building block in a template. A building block is pre-built content, similar to autotext, that may contain text, images, and formatting.

Methods

Name

Description

Delete

Deletes the specified building block.

Insert

Inserts the value of a building block into a document and returns a Range object that represents the contents of the building block within the document.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Category

Returns a Category object that represents the category for a building block. Read-only.

Creator

Returns a 32-bit integer that indicates the application in which the add-in was created. Read-only Long.

Description

Returns or sets a String that represents the description for a building block. Read/write.

ID

Returns a String that represents the internal identification number for a building block. Read-only.

Index

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

InsertOptions

Returns or sets a Long that represents how to insert the contents of a building block into a document. Read/write.

Name

Returns or sets a String that represents the name of a building block. Read/write.

Parent

Returns an Object that represents the parent object of the specified BuildingBlock object.

Type

Returns a BuildingBlockType object that represents the type for a building block. Read-only.

Value

Returns or sets a String that represents the contents of a building block. Read/write.