Share via


AutoTextEntry.Insert Method

Inserts the AutoText entry in place of the specified range.

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 AutoTextEntry
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

  • RichText
    Type: System.Object%
    Whether to insert the AutoText entry with its original formatting.

Return Value

Type: Microsoft.Office.Interop.Word.Range

Remarks

If you don't want to replace the range, use the Collapse method before using this method.

See Also

Reference

AutoTextEntry Interface

AutoTextEntry Members

Microsoft.Office.Interop.Word Namespace