Range.InsertBefore Method

Inserts the specified text before the specified range.

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

Syntax

'Declaration
Sub InsertBefore ( _
    Text As String _
)
'Usage
Dim instance As Range
Dim Text As String

instance.InsertBefore(Text)
void InsertBefore(
    string Text
)

Parameters

  • Text
    Type: System.String
    Required String. The text to be inserted.

Remarks

After the text is inserted, the range is expanded to include the new text. If the range is a bookmark, the bookmark is also expanded to include the next text.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace