Using LTrim, RTrim, and Trim to Trim Spaces from a String : String Function « Data Type « VBA / Excel / Access / Word
- VBA / Excel / Access / Word
- Data Type
- String Function
Using LTrim, RTrim, and Trim to Trim Spaces from a String
Sub TrimDemo()
Dim strUntrimmed As String, strTrimmed As String
strUntrimmed = Selection.Text
strTrimmed = Trim(strUntrimmed)
End Sub
Related examples in the same category