Hi
I need to get this VBA to speed through n rows as quickly as possible, doing 20 rows is fine, 5000 rows takes about 18minutes, before adding the:
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
&
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
it took 6.5hours to run through 43000 rows. I have automatic calculation set to manual at present as well.
Code currently in use as below:
-----------
Sub Calc()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim lRowLoop As Long, lLastRow As Long
lLastRow = ActiveSheet.Cells(Rows.Count, "Q").End(xlUp).Row
For lRowLoop = 2 To lLastRow
ActiveCell.GoalSeek Goal:=1, ChangingCell:=ActiveCell.Offset(0, -1)
ActiveCell.Offset(1, 0).Select
Next lRowLoop
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Please help
