Sub testA()
Dim rng As Range
Set rng = Cells(Rows.Count, 1).End(3).Offset(, 1)
Draw_Shape msoShapeRectangle, rng.Address, "Convention sur Parcelle"
End Sub
Sub testB()
Dim rng As Range
Set rng = Range("C15")
'on peut choisir la forme
Draw_Shape msoShapeRoundedRectangularCallout, rng.Address, "Excel-Downloads.com"
End Sub
Function Draw_Shape(ShapeType As MsoAutoShapeType, celAdr As String, Texte As String) As Shape
With ActiveSheet.Range(celAdr)
Set Draw_Shape = ActiveSheet.Shapes.AddShape(ShapeType, .Left + 5, .Top, 175, 20)
With Draw_Shape
.TextFrame.Characters.Text = Texte
.TextFrame.HorizontalAlignment = xlHAlignCenter...