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)
Syntax
'Declaration
Function Insert ( _
Where As Range, _
ByRef RichText As Object _
) As Range
'Usage
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
)
Parameters
- Where
Type: Microsoft.Office.Interop.Word.Range
The location of where to place the contents of the building block.
- 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
Range