TextRange2.TrimText method (Office)
Returns a TextRange2 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.