Re : Liste/données validation
Version avec images:
Les dates
Les dates
Les dates
Private Sub Worksheet_Change(ByVal Target As Range)
If (Target.Column = 5 Or Target.Column = 7 _
Or Target.Column = 9 Or Target.Column = 11 Or Target.Column = 13) _
And Target.Count = 1 Then
'-- suppression
For Each s In ActiveSheet.Shapes
If s.Type = 13 Or s.Type = 1 Then
If s.TopLeftCell.Address = Target.Offset(0, 1).Address Then
s.Delete
End If
End If
Next s
'--
If Application.Match(Target, [maliste], 0) <> 6 Then
Sheets("Liste").Shapes(Application.Substitute(Target, " ", "")).Copy
Target.Offset(0, 1).Select
ActiveSheet.Paste
Selection.ShapeRange.Left = ActiveCell.Left + 5
Selection.ShapeRange.Top = ActiveCell.Top + 4
Target.Select
End If
End If
End Sub
JB