NRIANS2123
New Member
- Joined
- Jun 17, 2019
- Messages
- 6
I've created a button that incorporates a bunch of functions. Everything is working, but the process started taking an extremely long time after I added the function below. What I'm do with this function is deleting all of the rows that have formulas in them that end up equaling a blank cell. Does anyone have any ideas on a better approach?
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Dim i As Long, finalRow As Long
finalRow = Cells(Rows.Count, 1).End(xlUp).Row[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] With Worksheets("Backlog Report (Regular)")
For i = finalRow To 2 Step -1
If Range("C" & i).Value = "" Then
Range("C" & i).EntireRow.Delete
End If
Next i
End With[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Dim i As Long, finalRow As Long
finalRow = Cells(Rows.Count, 1).End(xlUp).Row[/FONT]
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] With Worksheets("Backlog Report (Regular)")
For i = finalRow To 2 Step -1
If Range("C" & i).Value = "" Then
Range("C" & i).EntireRow.Delete
End If
Next i
End With[/FONT]