1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Dim rg1 As Range
Set rg1 = ActiveSheet.Range(Cells(j - 1, 12), Cells(i, 12))
ActiveSheet.Cells(j, 12).Formula = "=SUM(" & rg1.AddressLocal & " )"
Dim rg2 As Range
Set rg2 = ActiveSheet.Range(Cells(j - 1, 13), Cells(i, 13))
ActiveSheet.Cells(j, 13).Formula = "=SUM(" & rg2.AddressLocal & " )"
Dim rg3 As Range
Set rg3 = ActiveSheet.Range(Cells(j - 1, 14), Cells(i, 14))
ActiveSheet.Cells(j, 14).Formula = "=SUM(" & rg3.AddressLocal & " )"
Dim rg4 As Range
Set rg4 = ActiveSheet.Range(Cells(j - 1, 15), Cells(i, 15))
ActiveSheet.Cells(j, 15).Formula = "=SUM(" & rg4.AddressLocal & " )"
Dim rg1337 As Range
Set rg1337 = ActiveSheet.Range(Cells(j - 1, 16), Cells(i, 16))
ActiveSheet.Cells(j, 16).Formula = "=SUM(" & rg1337.AddressLocal & " )" |
Partager