Hi,
I have loop:
Example:
j = 10
x = 0
Row is deleted, but code should once again check j=10, because when row is deleted then automaticly row 11 is now 10, row 12 is 11, row 13 is 12 etc...(all row is moved up)
When I did like
is not working.
Are you able to help me?
I have loop:
Code:
For j = 10 to 500
x= ws.Range("C" & j).Value
If x = 0 Then
ws.Range("A" & j ).Select
Selection.EntireRow.Delete
End if
next
Example:
j = 10
x = 0
Row is deleted, but code should once again check j=10, because when row is deleted then automaticly row 11 is now 10, row 12 is 11, row 13 is 12 etc...(all row is moved up)
When I did like
Code:
For j = 10 to 500 Step -1
.
..
...
Are you able to help me?