Sub trimall()
Application.ScreenUpdating = False
Dim myRange As Range
Set myRange = Range("A11000") '< Change to suit
For Each c In myRange
c.Select
c.Value = Trim(c.Value)
Next c
Application.ScreenUpdating = True
End Sub
Sub trimall()
Application.ScreenUpdating = False
Dim myRange As Range
Set myRange = Range("A11000") '< Change to suit
For Each c In myRange
c.Select
c.Value = Trim(c.Value)
Next c
Application.ScreenUpdating = True
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.