Jean-Eric a écrit :
Bonjour,
Cette modification apporte-t-elle satisfaction?
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("A3:A60")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then
Range("B" & Target.Row).ClearContents
Range("D" & Target.Row & ":V" & Target.Row).ClearContents
End If
End If
End Sub
non, c est pas bon mais en fait, si je fais
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("B3:B60")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then Range("D" & Target.Row & ":K" & Target.Row).ClearContents
End If
End Sub
au lieu de
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("B3:B60")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then Range("C" & Target.Row & ":K" & Target.Row).ClearContents
End If
End Sub
c est parfait.
merci a vous
Autre question tant que je vous tiens, pourquoi je ne peux faire "revenir en arrière" lorsque je vide ma ligne avec votre formule ?