1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| 'Anomalies
Decal = 1
Workbooks.Add
With Range("A1:C1")
.Font.Bold = True
.HorizontalAlignment = xlCenter
End With
With Range("A1")
.Value = "Marqueur"
.Offset(0, 1) = "F"
.Offset(0, 2) = "R"
For j = 0 To i - 1
If Mat(j, 2) = "" Then ' "F"
.Offset(Decal) = Mat(j, 0)
.Offset(Decal, 1) = "Néant"
Decal = Decal + 1
End If
If Mat(j, 3) = "" Then ' "R"
.Offset(Decal) = Mat(j, 0)
.Offset(Decal, 2) = "Néant"
'Il n'y a lieu d'incrémenter Decal que si l'info pour "F" me manquait pas également
If Mat(j, 2) <> "" Then Decal = Decal + 1
End If
Next
End With |