Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Where
Type: Microsoft.Office.Interop.Word.Range
The location for the AutoText entry.
- 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.