VBA RTrim Function: The Rtrim function in VBA removes the leading spaces from the text in the specified string.

Syntax

Parameter

String (required) – This parameter represents the string from which you want to remove the trailing spaces.

Return

This function returns a string after removing the trailing spaces.

Example 1

Output

Name : Joe Jonas    Address: Street 34 Manhattan, US
VBA RTrim Function

Example 2

Output

VBA RTrim Function
VBA RTrim Function
VBA RTrim Function

Pin It on Pinterest

Share This