For sex = 0 To 1
For Class = 0 To 4
For band = 0 To 4
currRow = CInt(Right(ActiveCell.Address, Len(ActiveCell.Address) - 3))
ActiveCell.Value = "=IF(B$17+$A" & currRow & ">100,0,VLOOKUP(""" & strSex(sex) & strClass(Class) & strBand(band) & """&B$17,Mortality,6+$A" & currRow & ",FALSE)*VLOOKUP(""" & strSex(sex) & strClass(Class) & strBand(band) & """&B$17,RSUFactors,$A" & currRow & "+2,FALSE))/1000"
Selection.AutoFill Destination:=ActiveCell.Range("A1:H1"

, Type:= _
xlFillDefault
ActiveCell.Range("A1:H1"

.Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:H86"

, Type:= _
xlFillDefault
ActiveCell.Range("A1:H86"

.Select
ActiveCell.Offset(88, 0).Range("A1"

.Select
Next band
Next Class
Next sex
Application.Calculation = xlCalculationAutomatic
The error Occurs as soon as I tell the Macro to Run.