This documentation is archived and is not being maintained.

Range.InsertBefore Method 

Inserts the specified text before the specified range.

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

Dim Text As String
Dim range1 As Range

void InsertBefore(
	[In] string Text
public void InsertBefore(
	/*in*/System.String Text
function InsertBefore(
	 Text : String



Required String. The text to be inserted.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms