Perhaps a macro like this to "trim" column B?
Alf![]()
Sub test() Dim LR As Long, i As Long LR = Range("A" & Rows.Count).End(xlUp).Row For i = 1 To LR With Range("B" & i) .Value = WorksheetFunction.Trim(.Value) End With Next i End Sub
Perhaps a macro like this to "trim" column B?
Alf![]()
Sub test() Dim LR As Long, i As Long LR = Range("A" & Rows.Count).End(xlUp).Row For i = 1 To LR With Range("B" & i) .Value = WorksheetFunction.Trim(.Value) End With Next i End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks