AutoTextEntry.Insert(Range, Object) Method

Definition

Inserts the AutoText entry in place of the specified range.

public Microsoft.Office.Interop.Word.Range Insert (Microsoft.Office.Interop.Word.Range Where, ref object RichText);
abstract member Insert : Microsoft.Office.Interop.Word.Range * obj -> Microsoft.Office.Interop.Word.Range
Public Function Insert (Where As Range, Optional ByRef RichText As Object) As Range

Parameters

Where
Range

The location for the AutoText entry.

RichText
Object

Whether to insert the AutoText entry with its original formatting.

Returns

Remarks

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

Applies to