Hi
How to remove all spaces from texts in a cell and therefore in an entire column.
Thanks
with vba
Sub aa() Dim x& For x = 1 To Cells(Rows.Count, "a").End(xlUp).Row Cells(x, 1).Value = Replace(Cells(x, 1).Value, " ", "") Next End Sub
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
Use Replace All with a single space in the first box and nothing in the second box. Select the column first.
Regards, TMS
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks