Hey all,
I found this code on the board and was able to edit it to do what I need it to do but it is realllllly slow. Any suggestions to speed things up?
I have data in Columns A,B, & C. Most of Column C is blank. I want the rows where Column C is blank deleted, without deleting the entire row because I have buttons with macros assigned in Column D, E and F
Any help is much appreciated! One way I thought that could speed it up is if the range was just the active range, but the number of rows is variable and I'm not sure how to account for that.
I found this code on the board and was able to edit it to do what I need it to do but it is realllllly slow. Any suggestions to speed things up?
I have data in Columns A,B, & C. Most of Column C is blank. I want the rows where Column C is blank deleted, without deleting the entire row because I have buttons with macros assigned in Column D, E and F
Code:
Dim rcell As Range
Dim rrange As Range
Dim i as Long
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Set rrange = Range("A2:C10000")
For i = rrange.Rows.Count To 1 Step -1
If rrange.Cells(i, 3).Value = "" Then
rrange.Rows(i).Delete
End If
Next i
Any help is much appreciated! One way I thought that could speed it up is if the range was just the active range, but the number of rows is variable and I'm not sure how to account for that.