TrimEnd Function

Syntax

String TrimEnd(String untrimmedString, [String charsToTrim])

Return Value

String

The trimmed string.

Purpose

This function removes all trailing whitespace or specified characters from a string.

Parameters

untrimmedString as String

The string to trim.

charsToTrim as String

(Optional) Pass a string containing specific characters to remove instead of white space.