FROGGER24
Well-known Member
- Joined
- May 22, 2004
- Messages
- 704
- Office Version
- 2013
- 2010
- Platform
- Windows
Can these lines of code be consolidated into 1 or 2 lines of code
<
Range("I1:I" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-8]+RC[-7])"
Range("J1:J" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-7]+RC[-6])"
Range("K1:K" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-6]+RC[-5])"
Range("L1:L" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-5]+RC[-4])"
Range("M1:M" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-4]+RC[-3])"
Range("N1:N" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-3]+RC[-2])"
>
<
Range("I1:I" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-8]+RC[-7])"
Range("J1:J" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-7]+RC[-6])"
Range("K1:K" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-6]+RC[-5])"
Range("L1:L" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-5]+RC[-4])"
Range("M1:M" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-4]+RC[-3])"
Range("N1:N" & Cells(Rows.Count, 2).End(xlUp).Row).FormulaR1C1 = "=(RC[-3]+RC[-2])"
>