I have basically hit a wall with this problem since switching to office 2007. In office 2003 the whole code ran 4 seconds.
This is the portion that slows it down, this is the code that came from office 03 and in 07 it took 30 seconds to run. (Basically the whole code is running this portion 3x since it will go through 3 sheets). So the total time would go to 1min 20 seconds. This is already with screenupdating to false and calculation to manual.
For i = 2 To Range("A65536").End(xlUp).Row
If Range("A" & i).Value <> "" And Range("H" & i).Value = "" Then
Rows(i & ":" & i).Delete Shift:=xlUp
i = i - 1
End If
Next i
I then decided to change the code to
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
This would take 12 seconds each putting the total time to around 40 seconds
I know I already cut the time to 50% but is there any faster way to do this. TIA
This is the portion that slows it down, this is the code that came from office 03 and in 07 it took 30 seconds to run. (Basically the whole code is running this portion 3x since it will go through 3 sheets). So the total time would go to 1min 20 seconds. This is already with screenupdating to false and calculation to manual.
For i = 2 To Range("A65536").End(xlUp).Row
If Range("A" & i).Value <> "" And Range("H" & i).Value = "" Then
Rows(i & ":" & i).Delete Shift:=xlUp
i = i - 1
End If
Next i
I then decided to change the code to
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
This would take 12 seconds each putting the total time to around 40 seconds
I know I already cut the time to 50% but is there any faster way to do this. TIA