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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Returns aTextRange2 object that represents the specified text that has the whitespace removed.
expression .TrimText
expression An expression that returns a TextRange2 object.
TextRange2