TrimText Method

         Example         Applies To

Returns a TextRange object that represents the specified text minus any trailing spaces.

Syntax

expression.TrimText

expression   Required. An expression that returns a TextRange object.