Below code takes 45 minutes to process 28,0000 rows. I'm using a SUMIF to grab data from another tab with predetermined ranges. This is my second post and need your help. I never encountered this type of problem before. Please Assist!!
Sub BBGDownLoad12()
Dim lastcell As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
lastcell = Cells(65000, 3).End(xlUp).Row
Sheets("Download").Select
loopend = Application.WorksheetFunction.Ceiling(lastcell, 2000)
copystart = 2
For iloop = 2000 To loopend Step 2000
copyend = Application.Min(iloop, lastcell)
Range("AB" & copystart, "AB" & copyend) = "=SUMIF(fundingtradedata,RC[-27], fundingpl)"
copystart = iloop + 1
Next
Application.ScreenUpdating = True
End Sub
Sub BBGDownLoad12()
Dim lastcell As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
lastcell = Cells(65000, 3).End(xlUp).Row
Sheets("Download").Select
loopend = Application.WorksheetFunction.Ceiling(lastcell, 2000)
copystart = 2
For iloop = 2000 To loopend Step 2000
copyend = Application.Min(iloop, lastcell)
Range("AB" & copystart, "AB" & copyend) = "=SUMIF(fundingtradedata,RC[-27], fundingpl)"
copystart = iloop + 1
Next
Application.ScreenUpdating = True
End Sub