Re vba-new,
Ouahh!! super!
Mais j'ai quelques difficultés à l'adapter sur mon fichier.
Peux-tu m'expliquer les quelques lignes de code en rouge afin que je comprenne bien à quoi cela fait référence.
Je pense que j'adapte mal la macro à cause de ces zones d'ombre!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 And Target.Count = 1 Then
'-- suppression
For Each s In ActiveSheet.Shapes
If s.Type = 13 Then
If s.TopLeftCell.Address = Target.Offset(0, 1).Address Then
s.Delete
End If
End If
Next s
'--
If Target <> "" Then
lig = [TRUC].Find(Target, LookAt:=xlWhole).Row
col = [TRUC].Column + 1
For Each s In Sheets("Images").Shapes
If s.TopLeftCell.Address = Cells(lig, col).Address Then s.Copy
Next s
Target.Offset(0, 1).Select
ActiveSheet.Paste
Selection.ShapeRange.Left = ActiveCell.Left + 11
Selection.ShapeRange.Top = ActiveCell.Top + 3
Target.Select
End If
End If
End Sub
J'ai vu que tu avais défini une zone avec la fonction DECALER. L'as-tu associée à une cellule en particulier?
Merci vba new!
Einstein