Private
Sub
CheckBox2_Click()
If
ActiveSheet.CheckBox2.Value =
True
Then
With
ActiveSheet.OLEObjects.Add(ClassType:=
"Forms.CheckBox.1"
, Link:=
False
, _
DisplayAsIcon:=
False
, Left:=397.5, Top:=169.5, _
Width:=69.75, Height:=14.25)
.Placement = xlMoveAndSize
.PrintObject =
True
.
Object
.Font.Size = 8
.
Object
.Font.Name =
"Arial"
.
Object
.Caption =
"Hallo"
End
With
End
If
Range(
"A13"
).
Select
If
ActiveSheet.CheckBox2.Value =
False
Then
Rows(
"33"
).EntireRow.Hidden =
True
Else
Rows(
"33"
).EntireRow.Hidden =
False
End
If
End
Sub