Export (0) Print
Expand All
Expand Minimize

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)

'Usage
Dim Text As String
Dim range1 As Range
range1.InsertBefore(Text)

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

Parameters

Text

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

ADD
Show:
© 2014 Microsoft