i have a range with 6000 rows, i want to apply a worksheet.TRIM function within VBA to eliminate spaces in-between and on the ends...
problem is... nothing happens. whats best syntax for this? thanks
<code>
set rng = range("a1:a6000")
With rng
.value = WorksheetFunction.Trim(.value)
End With
</code>
problem is... nothing happens. whats best syntax for this? thanks
<code>
set rng = range("a1:a6000")
With rng
.value = WorksheetFunction.Trim(.value)
End With
</code>