Hello all,
This code takes a long time to run... is there a better way? Objective is to add a blank to every empty excel cell in the range.
Is there a more effecient way to achieve this objective?
Thanks,
Collen
This code takes a long time to run... is there a better way? Objective is to add a blank to every empty excel cell in the range.
Code:
Sub AddBlanks()
For I = 1 To 2000
For J = 1 To 50
If Trim(ActiveSheet.Cells(I, J).Value & "") = "" Then
ActiveSheet.Cells(I, J).Value = "'"
End If
Next J
Next I
End Sub
Is there a more effecient way to achieve this objective?
Thanks,
Collen