Trim() Removes leading and trailing spaces from a string. : Trim « String Functions « VBA / Excel / Access / Word






Trim() Removes leading and trailing spaces from a string.

 
Sub strDemo4()
   Debug.Print Trim("  My String ")
End Sub

 

Related examples in the same category