Hi!
I notice below trim command does not remove trim multiple blanks within the text, only at beginning and end. The trim function in excel does this and I wonder if anyone can tell me how I get the same result using vba?
[VBA]
Public Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("ALL_INPUT_DATA")) Is Nothing _
And Target.Count = 1 Then
Target = Trim(UCase(Target))
End If
Application.EnableEvents = True
End Sub
[/VBA]