Private Sub Workbook_Open()
If Split(Application.Version, ".")(0) < 12 Then
Range("E10").Formula = "= SI(C10 = """", """",WORKDAY(C10,-6,Jours_Congés))"
Else
Range("E10").Formula = "= SI(C10 = """", """",SERIE.JOUR.OUVRE(C10,-6,Jours_Congés))"
End If
End Sub