Public Sub affichagefen(ByVal Target As Range)
Dim sht2, sht3 As Worksheet
Dim Fenetre, shp As Shape
Dim Haut As Single
Dim Gauche As Single
Dim Texte, ch, Motrech, ActiveFen As String
Dim Cel As Range
Dim Lst1, Lst2 As String
[B][COLOR="Green"]On Error Resume Next
ActiveSheet.Shapes(1).Delete
On Error GoTo 0[/COLOR][/B]
Set sht2 = Sheets("feuil2")
Set sht3 = Sheets("feuil3")
Texte = ""
Motrech = ""
If Target.Column = 1 And Target.Count = 1 Then
[B][COLOR="Red"] For Each shp In ActiveSheet.Shapes
If Not Intersect(shp.TopLeftCell, Target.Offset(, 1)) Is Nothing Then
MsgBox "Nom Cadre / Target : " & shp.Name
MsgBox "Suppr. ? " & shp.Name
shp.Delete
End If
Next
'----------------------
If Right(Target.Value, 2) <> "--" And Right(Target.Value, 2) <> "-+" Then
'supprime la fenetre si le texte dans la cellule
'active ne se termine pas par "--" ou "-+"
On Error Resume Next
Set Fenetre = ActiveSheet.Shapes("Commentaire")
If Err.Number = 0 Then Fenetre.Delete
On Error GoTo 0
End If[/COLOR][/B]