pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
In the code below i want a few clarification...
#1. does i as long means that i col A?
and below that is writen for i = 512 to 1 step -1; does this means it will go till row 512 of col A
and #2. what does to 1 step -1 mean?
#3. with cells(i,1); what is tis supose to do?
Please help...and explain this..thanks alot!
I'm learning all this from you guys thanks alot!
Sub exa1()
Dim i As Long
For i = 512 To 1 Step -1
With Cells(i, 1)
If Len(.Value) Then .Offset(1).Resize(4).EntireRow.Delete
End With
Next
End Sub
#1. does i as long means that i col A?
and below that is writen for i = 512 to 1 step -1; does this means it will go till row 512 of col A
and #2. what does to 1 step -1 mean?
#3. with cells(i,1); what is tis supose to do?
Please help...and explain this..thanks alot!
I'm learning all this from you guys thanks alot!
Sub exa1()
Dim i As Long
For i = 512 To 1 Step -1
With Cells(i, 1)
If Len(.Value) Then .Offset(1).Resize(4).EntireRow.Delete
End With
Next
End Sub