Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
ActiveSheet.Shapes("Curseur").Visible = True
If Err <> 0 Then
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 6, 6, 8, 6).Name = "curseur"
ActiveSheet.Shapes("Curseur").Fill.Visible = msoFalse
ActiveSheet.Shapes("Curseur").Fill.Transparency = 1
ActiveSheet.Shapes("curseur").Line.Visible = True
ActiveSheet.Shapes("curseur").Line.ForeColor.SchemeColor = 10
ActiveSheet.Shapes("curseur").Line.Weight = 3
End If
ActiveSheet.Shapes("curseur").Left = Target.Left
ActiveSheet.Shapes("curseur").Top = Target.Top
ActiveSheet.Shapes("curseur").Height = Selection.Height
ActiveSheet.Shapes("curseur").Width = Selection.Width
End Sub