[COLOR=darkblue]Sub[/COLOR] DrawShape()
[COLOR=green]'lines[/COLOR]
[COLOR=darkblue]Dim[/COLOR] linetop [COLOR=darkblue]As[/COLOR] Shape
[COLOR=darkblue]Dim[/COLOR] lineright [COLOR=darkblue]As[/COLOR] Shape
[COLOR=darkblue]Dim[/COLOR] lineBottom [COLOR=darkblue]As[/COLOR] Shape
[COLOR=darkblue]Dim[/COLOR] lineleft [COLOR=darkblue]As[/COLOR] Shape
[COLOR=green]'couplings[/COLOR]
'Dim coupTopRight As Shape
[COLOR=green]'Dim coupBottomRight As Shape[/COLOR]
[COLOR=green]'Dim coupBottomLeft As Shape[/COLOR]
[COLOR=green]'Dim coupTopLeft As Shape[/COLOR]
[COLOR=green]'draw lines[/COLOR]
[COLOR=darkblue]Set[/COLOR] linetop = NewBar(100, 50, 250, 40, 18, 0, 1) 'maroon line
[COLOR=darkblue]Set[/COLOR] lineright = NewBar(250, 40, 280, 150, 11, 0, 1) [COLOR=green]'dark blue[/COLOR]
[COLOR=darkblue]Set[/COLOR] lineBottom = NewBar(280, 150, 90, 150, 16, 0, 1) 'dark grey
[COLOR=darkblue]Set[/COLOR] lineleft = NewBar(90, 150, 100, 50, 10, 0, 1) [COLOR=green]'dark green[/COLOR]
[COLOR=green]'draw couplings[/COLOR]
[COLOR=green]'Set coupTopRight = NewBar(244.5, 35.25, 8.25, 9#, 0, 16, 2)[/COLOR]
[COLOR=green]'Set coupBottomRight = NewBar(294.75, 145.5, 8.25, 9#, 0, 16, 2)[/COLOR]
[COLOR=green]'Set coupBottomLeft = NewBar(86.25, 144.75, 9#, 9#, 0, 16, 2)[/COLOR]
[COLOR=green]'Set coupTopLeft = NewBar(94.5, 45.75, 9#, 9.75, 0, 16, 2)[/COLOR]
[COLOR=green]'group the shape[/COLOR]
[COLOR=green]'Sheets("Sheet1").Shapes.SelectAll[/COLOR]
[COLOR=green]'Selection.ShapeRange.Group.Select[/COLOR]
[COLOR=green]'Selection.Name = "Bertie"[/COLOR]
Macro6 lineleft, linetop, lineright
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]
[COLOR=darkblue]Private[/COLOR] [COLOR=darkblue]Sub[/COLOR] Pause()
[COLOR=darkblue]Dim[/COLOR] start [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Single[/COLOR]
[COLOR=darkblue]Dim[/COLOR] t [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Single[/COLOR]
t = 0.15
start = Timer
[COLOR=darkblue]Do[/COLOR] [COLOR=darkblue]While[/COLOR] Timer < start + t
DoEvents
[COLOR=darkblue]Loop[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]
[COLOR=darkblue]Sub[/COLOR] Macro6([COLOR=darkblue]ByRef[/COLOR] lineleft [COLOR=darkblue]As[/COLOR] Shape, _
[COLOR=darkblue]ByRef[/COLOR] linetop [COLOR=darkblue]As[/COLOR] Shape, _
[COLOR=darkblue]ByRef[/COLOR] lineright [COLOR=darkblue]As[/COLOR] Shape)
[COLOR=green]'[/COLOR]
lineleft.Name = "Line 43"
linetop.Name = "Line 40"
lineright.Name = "Line 41"
[COLOR=green]'[/COLOR]
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 90#
Selection.ShapeRange.Item("Line 43").Width = 27.75
Selection.ShapeRange.Item("Line 43").Top = 58.5
Selection.ShapeRange.Item("Line 43").Height = 91.5
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft 17.25
Selection.ShapeRange.IncrementTop 7.5
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.IncrementLeft 16.5
Selection.ShapeRange.IncrementTop 7.5
Selection.ShapeRange.Item("Line 41").Left = 266.25
Selection.ShapeRange.Item("Line 41").Width = 14.25
Selection.ShapeRange.Item("Line 41").Top = 47.25
Selection.ShapeRange.Item("Line 41").Height = 102.75
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 90#
Selection.ShapeRange.Item("Line 43").Width = 54#
Selection.ShapeRange.Item("Line 43").Top = 79.5
Selection.ShapeRange.Item("Line 43").Height = 70.5
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft 29.25
Selection.ShapeRange.IncrementTop 21#
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 15#
Selection.ShapeRange.Item("Line 41").Top = 68.25
Selection.ShapeRange.Item("Line 41").Height = 81.75
Pause
Selection.ShapeRange.Flip msoFlipHorizontal
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 90#
Selection.ShapeRange.Item("Line 43").Width = 81#
Selection.ShapeRange.Item("Line 43").Top = 98.25
Selection.ShapeRange.Item("Line 43").Height = 51.75
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft 26.25
Selection.ShapeRange.IncrementTop 21#
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 40.5
Selection.ShapeRange.Item("Line 41").Top = 90#
Selection.ShapeRange.Item("Line 41").Height = 60#
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 90#
Selection.ShapeRange.Item("Line 43").Width = 105#
Selection.ShapeRange.Item("Line 43").Top = 128.25
Selection.ShapeRange.Item("Line 43").Height = 21.75
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft 21#
Selection.ShapeRange.IncrementTop 28.5
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 61.5
Selection.ShapeRange.Item("Line 41").Top = 120#
Selection.ShapeRange.Item("Line 41").Height = 30#
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 90#
Selection.ShapeRange.Item("Line 43").Width = 109.5
Selection.ShapeRange.Item("Line 43").Top = 141.75
Selection.ShapeRange.Item("Line 43").Height = 8.25
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft 3#
Selection.ShapeRange.IncrementTop 14.25
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 64.5
Selection.ShapeRange.Item("Line 41").Top = 134.25
Selection.ShapeRange.Item("Line 41").Height = 15.75
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.Item("Line 43").Left = 89.25
Selection.ShapeRange.Item("Line 43").Width = 105#
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 17.25
Pause
Selection.ShapeRange.Flip msoFlipVertical
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 1.5
Selection.ShapeRange.Item("Line 40").Left = 191.25
Selection.ShapeRange.Item("Line 40").Width = 154.5
Selection.ShapeRange.Item("Line 40").Top = 133.5
Selection.ShapeRange.Item("Line 40").Height = 35.25
Pause
Selection.ShapeRange.Item("Line 40").Top = 154.5
Selection.ShapeRange.Item("Line 40").Height = 14.25
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 62.25
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 4.5
Pause
Selection.ShapeRange.Flip msoFlipVertical
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 89.25
Selection.ShapeRange.Item("Line 43").Width = 81#
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 40.5
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -21#
Selection.ShapeRange.IncrementTop 23.25
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 280.5
Selection.ShapeRange.Item("Line 41").Width = 42#
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 30.75
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 89.25
Selection.ShapeRange.Item("Line 43").Width = 36#
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 72#
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -45#
Selection.ShapeRange.IncrementTop 27.75
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 279.75
Selection.ShapeRange.Item("Line 41").Width = 0.75
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 56.25
Pause
Selection.ShapeRange.Flip msoFlipHorizontal
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 81#
Selection.ShapeRange.Item("Line 43").Width = 8.25
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 81#
Pause
Selection.ShapeRange.Flip msoFlipHorizontal
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -47.25
Selection.ShapeRange.IncrementTop 11.25
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 231#
Selection.ShapeRange.Item("Line 41").Width = 49.5
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 69.75
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 47.25
Selection.ShapeRange.Item("Line 43").Width = 42#
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 48.75
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -31.5
Selection.ShapeRange.IncrementTop -32.25
Selection.ShapeRange.Item("Line 40").Left = 46.5
Selection.ShapeRange.Item("Line 40").Width = 144#
Selection.ShapeRange.Flip msoFlipVertical
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 191.25
Selection.ShapeRange.Item("Line 41").Width = 89.25
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 65.25
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 23.25
Selection.ShapeRange.Item("Line 43").Width = 66#
Selection.ShapeRange.Item("Line 43").Top = 150#
Selection.ShapeRange.Item("Line 43").Height = 12#
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.IncrementLeft -22.5
Selection.ShapeRange.IncrementTop -35.25
ActiveSheet.Shapes("Line 41").Select
Range("D18").Select
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 168#
Selection.ShapeRange.Item("Line 41").Width = 112.5
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 29.25
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 24#
Selection.ShapeRange.Item("Line 43").Width = 65.25
Selection.ShapeRange.Item("Line 43").Top = 127.5
Selection.ShapeRange.Item("Line 43").Height = 22.5
Selection.ShapeRange.Flip msoFlipVertical
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.Item("Line 40").Left = 25.5
Selection.ShapeRange.Item("Line 40").Width = 142.5
Selection.ShapeRange.Item("Line 40").Top = 127.5
Selection.ShapeRange.Item("Line 40").Height = 50.25
Pause
Selection.ShapeRange.Item("Line 40").Left = 25.5
Selection.ShapeRange.Item("Line 40").Width = 61.5
Selection.ShapeRange.Item("Line 40").Top = 127.5
Selection.ShapeRange.Item("Line 40").Height = 61.5
Pause
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 85.5
Selection.ShapeRange.Item("Line 41").Width = 195#
Selection.ShapeRange.Item("Line 41").Top = 150#
Selection.ShapeRange.Item("Line 41").Height = 39#
Pause
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 54.75
Selection.ShapeRange.Item("Line 43").Width = 34.5
Selection.ShapeRange.Item("Line 43").Top = 106.5
Selection.ShapeRange.Item("Line 43").Height = 43.5
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.Item("Line 40").Left = 54.75
Selection.ShapeRange.Item("Line 40").Width = 32.25
Selection.ShapeRange.Item("Line 40").Top = 105.75
Selection.ShapeRange.Item("Line 40").Height = 83.25
Pause
Selection.ShapeRange.Item("Line 40").Left = 54.75
Selection.ShapeRange.Item("Line 40").Width = 73.5
Selection.ShapeRange.Item("Line 40").Top = 105.75
Selection.ShapeRange.Item("Line 40").Height = 24.75
Pause
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 127.5
Selection.ShapeRange.Item("Line 41").Width = 153#
Selection.ShapeRange.Item("Line 41").Top = 131.25
Selection.ShapeRange.Item("Line 41").Height = 18.75
Pause
Selection.ShapeRange.Flip msoFlipVertical
ActiveSheet.Shapes("Line 43").Select
Selection.ShapeRange.Item("Line 43").Left = 88.5
Selection.ShapeRange.Item("Line 43").Width = 0.75
Selection.ShapeRange.Item("Line 43").Top = 91.5
Selection.ShapeRange.Item("Line 43").Height = 58.5
Pause
ActiveSheet.Shapes("Line 40").Select
Selection.ShapeRange.Item("Line 40").Left = 87.75
Selection.ShapeRange.Item("Line 40").Width = 40.5
Selection.ShapeRange.Item("Line 40").Top = 90.75
Selection.ShapeRange.Item("Line 40").Height = 39.75
Pause
Selection.ShapeRange.Item("Line 40").Left = 87.75
Selection.ShapeRange.Item("Line 40").Width = 140.25
Selection.ShapeRange.Item("Line 40").Top = 87.75
Selection.ShapeRange.Item("Line 40").Height = 3#
Selection.ShapeRange.Flip msoFlipVertical
ActiveSheet.Shapes("Line 41").Select
Selection.ShapeRange.Item("Line 41").Left = 226.5
Selection.ShapeRange.Item("Line 41").Width = 54#
Selection.ShapeRange.Item("Line 41").Top = 88.5
Selection.ShapeRange.Item("Line 41").Height = 61.5
[COLOR=darkblue]End[/COLOR] Sub