Bonjour,
Je me souviens de cette macro...
Ce cas-là est plus facile car on a une MFC de type "la valeur de la cellule est". Il suffit de remplacer :
With Cells(i, 11) 'Le 11 dans Cells(i, 11) correspond à la colonne k
.Activate
For Each FC In ActiveCell.FormatConditions
C.FormulaLocal = FC.Formula1: F1 = C
If F1 Then Exit For
Next FC
If Not FC Is Nothing Then
'Le "Font.Strikethrough" permet de tester si la cellule est barrée
'Le "FC.Interior.ColorIndex" permet de tester la couleur de la MFC
'4 = Vert ; 44 = Orange clair
If .Font.Strikethrough = True And (FC.Interior.ColorIndex = 4 Or _
FC.Interior.ColorIndex = 44) Then
Cells(i, derCol + 1) = 1 'derCol + 1 signifie dernière colonne + 1
Else
Cells(i, derCol + 1) = 0
End If
Else
Cells(i, derCol + 1) = 0
End If
End With
par
If Cells(i, 8) = "OUI" And Cells(i, 8).Font.Strikethrough = True Then
Cells(i, derCol + 1) = 1
Else
Cells(i, derCol + 1) = 0
End If