Hia...
I've written some code that selects all the text cells in a spreadsheet and cleans up the contents with Trim, Clean:
Range("A1", Range("A1").SpecialCells(xlLastCell)).SpecialCells(xlCellTypeConstants, 2).Select
For Each rng In Selection
rng.Value = Application.WorksheetFunction.Clean(Trim(rng.Value))
Next rng
Is there a faster way of doing this becaise some worksheets have a lot of data?
Cheers...A
I've written some code that selects all the text cells in a spreadsheet and cleans up the contents with Trim, Clean:
Range("A1", Range("A1").SpecialCells(xlLastCell)).SpecialCells(xlCellTypeConstants, 2).Select
For Each rng In Selection
rng.Value = Application.WorksheetFunction.Clean(Trim(rng.Value))
Next rng
Is there a faster way of doing this becaise some worksheets have a lot of data?
Cheers...A