Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InsertBefore Method
Collapse the table of content
Expand the table of content

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)

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

Community Additions

© 2015 Microsoft