Screen Lable-Round-Edge-Boxes:
Sub Macro1()
'
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangle, 61.5, 20.25, 515.25, _
50.25).Select
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 43
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 2#
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
Selection.ShapeRange.Adjustments.Item(1) = 0.3881
Selection.ShapeRange.Adjustments.Item(1) = 0.2538
ExecuteExcel4Macro "FORMULA(""=Sheet2!RC"")"
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Orientation = xlHorizontal
.AutoSize = False
End With
Range("A9").Select
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangle, 90#, 120.75, 115.5, _
60.75).Select
Selection.ShapeRange.Adjustments.Item(1) = 0.2222
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 43
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 2#
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
ExecuteExcel4Macro "FORMULA(""=Sheet2!R[1]C"")"
With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 9
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Orientation = xlHorizontal
.AutoSize = False
End With
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangle, 87#, 222.75, 117#, _
61.5).Select
Selection.ShapeRange.ScaleWidth 0.98, msoFalse, msoScaleFromBottomRight
Selection.ShapeRange.Adjustments.Item(1) = 0.2195
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 43
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 2#
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
ExecuteExcel4Macro "FORMULA(""=Sheet2!R[2]C"")"
With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
.Orientation = xlHorizontal
.AutoSize = False
End With
Range("A1").Select
Application.CommandBars("Forms").Visible = True
ActiveSheet.Buttons.Add(309.75, 156.75, 172.5, 90.75).Select
Selection.OnAction = "Macro3"
Application.CommandBars("Forms").Visible = False
Selection.Characters.Text = "Press to" & Chr(10) & " ReSet Test"
With Selection.Characters(Start:=1, Length:=20).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 22
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 11
End With
Range("F8").Select
ActiveCell.FormulaR1C1 = "Note: Ballon data is located on Sheet2!"
Selection.Font.Bold = True
Range("A1").Select
End Sub
Sub Macro3()
'
Range("A1:A24").Select
Selection.EntireRow.Delete
Range("A1").Select
Application.CommandBars("Forms").Visible = True
ActiveSheet.Buttons.Add(190.75, 30.75, 204.5, 20).Select
Selection.OnAction = "Macro1"
Selection.ShapeRange.ScaleHeight 1.54, msoFalse, msoScaleFromBottomRight
Selection.ShapeRange.ScaleHeight 1.27, msoFalse, msoScaleFromTopLeft
With Selection.Characters(Start:=1, Length:=28).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 9
End With
Selection.Characters.Text = "Press to build data ballons!"
Range("A1").Select
Application.CommandBars("Forms").Visible = False
End Sub
Sub OneB()
Range("A9").Select
ActiveSheet.Shapes.AddShape(msoShapeRoundedRectangle, 90#, 120.75, 115.5, _
60.75).Select
Selection.ShapeRange.Adjustments.Item(1) = 0.2222
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 43
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 2#
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
'Note: The message displayed is found in the cell address below!
'RC cell addresses start in row, column 0,0. So row 1 is row 2.
ExecuteExcel4Macro "FORMULA(""=Sheet2!R[1]C"")"
With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.ColorIndex = 9
End With
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Orientation = xlHorizontal
.AutoSize = False
End With
'Set timer(Hour:Minutes:Seconds).
If Application.Wait(Now + TimeValue("0:00:10")) Then
Selection.Cut
End If
End Sub