TextRange2.TrimText method (Office)
Returns a TextRange2 object that represents the specified text that has the whitespace removed.
expression An expression that returns a TextRange2 object.
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.