shadow12345
Well-known Member
- Joined
- May 10, 2004
- Messages
- 1,238
Hi all,
I am using the below code to delete rows from an excel 2007 sheet.... trouble is it take forever! I have 38000 + rows.
Is there anything I can do to speed up more?
code/ Sub Firstdel()
Dim i As Long
Application.ScreenUpdating = False
For i = Cells(Rows.Count, 1).End(xlUp).Row To 4 Step -1
If Range("AB" & i).Value = "Delete" Then Range(i & ":" & i - 1).Delete Shift:=xlUp
Next i
End Sub \code
I am using the below code to delete rows from an excel 2007 sheet.... trouble is it take forever! I have 38000 + rows.
Is there anything I can do to speed up more?
code/ Sub Firstdel()
Dim i As Long
Application.ScreenUpdating = False
For i = Cells(Rows.Count, 1).End(xlUp).Row To 4 Step -1
If Range("AB" & i).Value = "Delete" Then Range(i & ":" & i - 1).Delete Shift:=xlUp
Next i
End Sub \code
Last edited: