Hi,
I have been using the code below, has been working ok but now I have more data so it takes considerably longer to run through.
Code loops down column B and if cell on same row in column A = 0 then deletes zero
Is there a more efficient way of doing this ?
thanks Steve
Range("B5").Select
Do Until ActiveCell = ""
If ActiveCell = 0 Then
ActiveCell.Offset(0, -1).Clear
ActiveCell.Offset(1, 0).Activate
Else
ActiveCell.Offset(1, 0).Activate
End If
Loop
I have been using the code below, has been working ok but now I have more data so it takes considerably longer to run through.
Code loops down column B and if cell on same row in column A = 0 then deletes zero
Is there a more efficient way of doing this ?
thanks Steve
Range("B5").Select
Do Until ActiveCell = ""
If ActiveCell = 0 Then
ActiveCell.Offset(0, -1).Clear
ActiveCell.Offset(1, 0).Activate
Else
ActiveCell.Offset(1, 0).Activate
End If
Loop