1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| Sub MaTroisiemeMacro()
'
' MaTroisiemeMacro Macro
'
Dim d As Single
d = InputBox("Entrer le diametre")
'
ActiveSheet.Shapes.AddShape(msoShapeOval, 280.1724409449, 146.5517322835, d, _
d).Select
With Selection.ShapeRange.Line
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorText1
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = 0
.Transparency = 0
End With
With Selection.ShapeRange.Fill
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorBackground1
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = -0.150000006
.Transparency = 0
.Solid
End With
With Selection.ShapeRange.Fill
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorBackground1
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = -0.150000006
.BackColor.ObjectThemeColor = msoThemeColorBackground1
.BackColor.TintAndShade = 0
.BackColor.Brightness = 0
.Patterned msoPattern5Percent
End With
With Selection.ShapeRange.Fill
.Visible = msoTrue
.Patterned msoPatternLargeConfetti
End With
With Selection.ShapeRange.Fill
.Visible = msoTrue
.Patterned msoPatternLargeConfetti
End With
End Sub |