Re,
Utilise le code suivant que j'ai modifié dans ton Module1 :
Dim LastRow1 As Long, LastRow2 As Long 'formule
With Sheets("RAPPRO")
LastRow1 = .Cells(Rows.Count, "A").End(xlUp).Row
LastRow2 = .Cells(Rows.Count, "M").End(xlUp).Row
Range("E4:E" & LastRow1).FormulaR1C1 = "=RC[-1]-RC[-2]"
Range("G4:G" & LastRow1).FormulaR1C1 = "=RIGHT(RC[-5],6)"
Range("H4:H" & LastRow1).FormulaR1C1 = "=IF(COUNTIF(DOSS_GESTION,DOSS_COMPTA)>0,""ok"",""ABSENT GTRANS"")"
Range("H4:H" & LastRow1).Copy
Range("H4").PasteSpecial xlPasteValues
Range("M4:M" & LastRow2).FormulaR1C1 = "=IF(COUNTIF(DOSS_COMPTA,DOSS_GESTION)>0,""ok"",""ABSENT GTRANS"")"
Range("M4:M" & LastRow2).Copy
Range("M4").PasteSpecial xlPasteValues
End With
Application.CutCopyMode = False
J'ai utilisé la méthode de copier/coller les valeurs. Il y a d'autres moyens pour y parvenir, enfin bref le résultat est là. Pour info, on peut, quand on connaît la plage, enregistrer la formule à une plage entière.