Hello all
I need help please if possible on this loop formula
It works well but I want to modify this as follows
At the moment this loops the formula from row 31 to 40 but I need it to loop all the rows below
31 to 40
61 to 70
301 to 310
331 to 340
421 to 430
451 to 460
541 to 550
571 to 580
661 to 670
691 to 700
781 to 790
811 to 820
901 to 910
931 to 940
LC = Cells(11, Columns.Count).End(xlToLeft).Column
For aa = 31 To 40 Step 1
With Range(Cells(aa, 4), Cells(aa, LC))
.FormulaR1C1 = "=SUMIFS('MIS - Customer Invoice'!C11,'MIS - Customer Invoice'!C46,R30C,'MIS - Customer Invoice'!C8,RC2)"
'.Value = .Value
End With
Next aa‹
I currently have the code written for each of the above rows and was wondering if one loop but with some added STEP code would be more efficient
I need help please if possible on this loop formula
It works well but I want to modify this as follows
At the moment this loops the formula from row 31 to 40 but I need it to loop all the rows below
31 to 40
61 to 70
301 to 310
331 to 340
421 to 430
451 to 460
541 to 550
571 to 580
661 to 670
691 to 700
781 to 790
811 to 820
901 to 910
931 to 940
LC = Cells(11, Columns.Count).End(xlToLeft).Column
For aa = 31 To 40 Step 1
With Range(Cells(aa, 4), Cells(aa, LC))
.FormulaR1C1 = "=SUMIFS('MIS - Customer Invoice'!C11,'MIS - Customer Invoice'!C46,R30C,'MIS - Customer Invoice'!C8,RC2)"
'.Value = .Value
End With
Next aa‹
I currently have the code written for each of the above rows and was wondering if one loop but with some added STEP code would be more efficient