bonjour,
une proposition
Sub aargh()
With Sheets("CEG MENSUALISE")
dl = .Cells(Rows.Count, 2).End(xlUp).Row
dc = .Range("BN1").Column 'dernière colonne vers laquelle copier la formule
Set rf = Nothing 'rf sélection des colonnes vers lesquelles il faut copier la formule, on exclut les colonnes dont l'entête commence par Var
For i = 5 To dc
If Left(.Cells(11, i), 3) <> "Var" Then
If rf Is Nothing Then Set rf = .Cells(11, i) Else Set rf = Union(rf, .Cells(11, i))
End If
Next i
For i = 13 To dl 'on copie les formules pour les lignes marqués en rose
If .Cells(i, 4).Interior.Color = 11389944 Then
.Cells(i, 4).Copy
rf.Offset(i - 11, 0).PasteSpecial xlPasteFormulas
End If
Next i
End With
End Sub