Sub suppression_élève()
Dim F1 As String
Dim F2 As String
F1 = Sheets("formulaire").Name
F2 = Sheets("note").Name
Sheets(F2).Select
li = Sheets(F2).Cells(36000, 3).End(xlUp).Row
For i = 5 To li
If Sheets(F2).Cells(i, 3) = Sheets(F1).Range("D9") Then
Sheets(F2).Cells(i, 3) = ""
Sheets(F2).Cells(i, 4) = ""
Sheets(F2).Cells(i, 5) = ""
Sheets(F2).Cells(i, 6) = ""
Sheets(F2).Cells(i, 7) = ""
Sheets(F2).Cells(i, 8) = ""
Sheets(F2).Cells(i, 9) = ""
Sheets(F2).Cells(i, 10) = ""
End If
Next
MsgBox ("Modifications effectuées")
Sheets(F1).Range("D9") = ""
Sheets(F1).Range("D15") = ""
Sheets(F1).Range("G9") = ""
Sheets(F1).Range("G11") = ""
Sheets(F1).Range("G13") = ""
Sheets(F1).Range("G15") = ""
Sheets(F1).Select
End Sub