BuildingBlock.Insert Method

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.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Function Insert ( _
    Where As Range, _
    ByRef RichText As Object _
) As Range
Dim instance As BuildingBlock
Dim Where As Range
Dim RichText As Object
Dim returnValue As Range

returnValue = instance.Insert(Where, RichText)
Range Insert(
    Range Where,
    ref Object RichText


  • RichText
    Type: System.Object%
    True inserts the building block as rich, formatted text. False inserts the building block as plain text.

Return Value

Type: Microsoft.Office.Interop.Word.Range

See Also


BuildingBlock Interface

BuildingBlock Members

Microsoft.Office.Interop.Word Namespace