InsertBefore Method

See Also         Example         Applies To

Appends a string to the beginning of the specified text range. Returns a TextRange object that represents the appended text. When used without an argument, this method returns a zero-length string at the end of the specified range.

Syntax

expression.InsertBefore(NewText)

expression   Required. An expression that returns a TextRange object.

NewText   Optional String. The text to be appended. The default value is an empty string.