Private Sub Worksheet_Change(ByVal Target As Range)
Dim projet As Range, P As Range, F As Worksheet, lig As Variant, i&
Set projet = [B2]
Set P = [C3:C7] 'plage des modifications
Set F = Sheets("BaseDonnees")
lig = Application.Match(projet, F.Columns(1), 0)
If Intersect(Target, projet) Is Nothing And IsNumeric(lig) Then
For i = 1 To P.Rows.Count
If P(i) <> "" Then F.Cells(lig, i + 1) = P(i)
Next
Else
Application.EnableEvents = False 'désactive les évènements
P.ClearContents 'RAZ
Application.EnableEvents = True 'réactive les évènements
End If
End Sub