TextRange2.TrimText Method (Office)

Returns aTextRange2 object that represents the specified text that has the whitespace removed.

Syntax

expression .TrimText

expression An expression that returns a TextRange2 object.

Return Value

TextRange2

See Also

Concepts

TextRange2 Object

TextRange2 Object Members