Вы находитесь на странице: 1из 1

Sub Compte_De_résultat_Complément ()

Sheets("Compte de résultat").Select

'Charges d'exploitation
Range("B11").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-6]C:R[-1]C)"

Range("C11").Select
Range("C11").FormulaR1C1 = "=SUM(R[-6]C:R[-1]C)"

Selection.AutoFill Destination:=Range("C11:F11"), Type:=xlFillDefault

'Produits d'exploitation
Range("B15").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-2]C:R[-1]C)"
Range("B15").Select
Selection.AutoFill Destination:=Range("B15:F15"), Type:=xlFillDefault

'Résultat d'exploitation
Range("B16").Select
ActiveCell.FormulaR1C1 = "=(R[-1]C-R[-4]C)"
Range("B16").Select
Selection.AutoFill Destination:=Range("B16:F16"), Type:=xlFillDefault

'Résultat financier
Range("B19").Select
ActiveCell.FormulaR1C1 = "=(R[-2]C-R[-1]C)"
Range("B19").Select
Selection.AutoFill Destination:=Range("B19:F19"), Type:=xlFillDefault

'Résultat avant impôt


Range("B21").Select
ActiveCell.FormulaR1C1 = "=(R[-5]C+R[-2]C)"
Range("B21").Select
Selection.AutoFill Destination:=Range("B21:F21"), Type:=xlFillDefault

'Mise en gras
Range("B11:F11").font.bold = true
Range("B15:F15").font.bold = true
Range("B16:F16").font.bold = true
Range("B19:F19").font.bold = true
Range("B21:F21").font.bold = true

Вам также может понравиться