Hi Forum
Hope all is well, would like a bit of help with a macro that trims spaces from cells.
I found this snippet and works great, however I would like to count the number of blanks the macro removes.
As always would appreciate any help you can provide
Many thanks
Regards
Rob
Hope all is well, would like a bit of help with a macro that trims spaces from cells.
I found this snippet and works great, however I would like to count the number of blanks the macro removes.
Sub NoSpaces()
Dim c As Range
For Each c In Selection.Cells
c = Trim(c)
Next
End Sub
Dim c As Range
For Each c In Selection.Cells
c = Trim(c)
Next
End Sub
As always would appreciate any help you can provide
Many thanks
Regards
Rob