I posted yesterday about getting a checkbox macro that would set the linked cell to another page and got the following code:
This code works for one worksheet, but how can I make it work for another worksheet except this time with an offset of four on the linked cell?
Thanks
PHP Code:
Sub addCBX()
Dim myCBX As CheckBox
Dim myCell As Range
With ActiveSheet
.CheckBoxes.Delete
For Each myCell In ActiveSheet.Range("D8:D67,E8:E67,F8:F67,G8:G67")
With myCell
Set myCBX = .Parent.CheckBoxes.Add _
(Top:=.Top, Width:=.Width, _
Left:=.Left, Height:=.Height)
With myCBX
.LinkedCell = "A!" & myCell.Address
.Caption = ""
End With
End With
Next myCell
End With
End Sub
Thanks