Hi Guys,
This below macro works great - HOWEVER how would I assign it so that it is worksheet specific??
Ie when you select a check box it is linked to "sheet1"$b$9 not just $B$9.
I can't seem to make it work....
Hope that makes sense!
Cheers
Sammy
This below macro works great - HOWEVER how would I assign it so that it is worksheet specific??
Ie when you select a check box it is linked to "sheet1"$b$9 not just $B$9.
I can't seem to make it work....
Hope that makes sense!
Cheers
Sammy
Code:
Sub AddCheckBoxes()
On Error Resume Next
Dim c As Range, myRange As Range
Set myRange = Selection
For Each c In myRange.Cells
ActiveSheet.CheckBoxes.Add(c.Left, c.Top, c.Width, c.Height).Select
With Selection
.LinkedCell = c.Address
.Characters.Text = ""
.Name = c.Address
End With
Next
myRange.Select
End Sub