W
WhytheQ
I've tried the below function over a range of 6000 cells.
'======================================
Private Function TrimAll(myTrimArea As Range)
Dim cell
For Each cell In myTrimArea.Cells
cell.Value = Trim(cell.Value)
Next cell
End Function
'======================================
.....it's very slow.
What is wrong with my code ?
Any help greatly appreciated
J
'======================================
Private Function TrimAll(myTrimArea As Range)
Dim cell
For Each cell In myTrimArea.Cells
cell.Value = Trim(cell.Value)
Next cell
End Function
'======================================
.....it's very slow.
What is wrong with my code ?
Any help greatly appreciated
J