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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| Sub Decision()
'
' Test Macro
'
'
Sheets("Formalisme").Select
ActiveSheet.Shapes.Range(Array("AutoShape 2")).Select
Selection.Copy
Sheets("Feuil2").Activate
Range("M6").Select
ActiveSheet.Paste
ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 844.5, 123.3750393701, _
903.75, 123.75).Select
Selection.ShapeRange.Line.EndArrowheadStyle = msoArrowheadOpen
Selection.ShapeRange.ConnectorFormat.BeginConnect ActiveSheet.Shapes( _
"AutoShape 2"), 4
Selection.ShapeRange.ShapeStyle = msoLineStylePreset1
ActiveSheet.Shapes.AddConnector(msoConnectorStraight, 782.25, 171.75, 782.25, _
216).Select
Selection.ShapeRange.Line.EndArrowheadStyle = msoArrowheadOpen
Selection.ShapeRange.ConnectorFormat.BeginConnect ActiveSheet.Shapes( _
"AutoShape 2"), 3
Selection.ShapeRange.ShapeStyle = msoLineStylePreset1
ActiveSheet.Shapes.Range(Array("AutoShape 2")).Select
End Sub
Sub OUI_NON()
'
' OUI_NON Macro
'
'
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 847.5, 112.5, 30, 9 _
).Select
Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "OUI"
Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 3).ParagraphFormat. _
FirstLineIndent = 0
With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 3).Font
.NameComplexScript = "+mn-cs"
.NameFarEast = "+mn-ea"
.Fill.Visible = msoTrue
.Fill.ForeColor.ObjectThemeColor = msoThemeColorDark1
.Fill.ForeColor.TintAndShade = 0
.Fill.ForeColor.Brightness = 0
.Fill.Transparency = 0
.Fill.Solid
.Size = 11
.Name = "+mn-lt"
End With
Selection.ShapeRange.ScaleHeight 2, msoFalse, msoScaleFromBottomRight
Selection.ShapeRange.ScaleWidth 1.35, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.9583333333, msoFalse, _
msoScaleFromBottomRight
Selection.ShapeRange.Line.Visible = msoFalse
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 786, 183, 30.75, _
16.5).Select
Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "NON"
Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 3).ParagraphFormat. _
FirstLineIndent = 0
With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 3).Font
.NameComplexScript = "+mn-cs"
.NameFarEast = "+mn-ea"
.Fill.Visible = msoTrue
.Fill.ForeColor.ObjectThemeColor = msoThemeColorDark1
.Fill.ForeColor.TintAndShade = 0
.Fill.ForeColor.Brightness = 0
.Fill.Transparency = 0
.Fill.Solid
.Size = 11
.Name = "+mn-lt"
End With
Selection.ShapeRange.ScaleWidth 1.3170731707, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 1.1818181818, msoFalse, _
msoScaleFromBottomRight
Selection.ShapeRange.IncrementLeft -3.75
Selection.ShapeRange.IncrementTop -3
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.ScaleWidth 0.8703703704, msoFalse, msoScaleFromBottomRight
Selection.ShapeRange.ScaleHeight 0.9615384615, msoFalse, _
msoScaleFromBottomRight
Selection.ShapeRange.ScaleWidth 1.1276618082, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 1.1199958005, msoFalse, _
msoScaleFromBottomRight
Selection.ShapeRange.ScaleHeight 0.7499990626, msoFalse, _
msoScaleFromBottomRight
Selection.ShapeRange.IncrementLeft -4.5
Selection.ShapeRange.IncrementTop -0.75
End Sub |
Partager