Hi,
I didn't think this would be difficult, but I've tied myself in knots with Google searches and am not proper confused !!
I have a range of cells : A1:A10
I would like every cell in this range alone to have a check box
Each check box should link to it's respective cell: A1, A2 etc..
Each check box should be named for it's respective cell : CheckBoxA1, CheckBoxA2 etc...
I will need to adapt this code to allow further ranges to be added B1:B10, C1:C10 etc so this will eventually become a loop.
Can someone advise if a) this is possible and b) a pointer on where to start ... I have gotten as far as
but this breaks really easily as I'm trying to manually pick up the checkbox name
I didn't think this would be difficult, but I've tied myself in knots with Google searches and am not proper confused !!
I have a range of cells : A1:A10
I would like every cell in this range alone to have a check box
Each check box should link to it's respective cell: A1, A2 etc..
Each check box should be named for it's respective cell : CheckBoxA1, CheckBoxA2 etc...
I will need to adapt this code to allow further ranges to be added B1:B10, C1:C10 etc so this will eventually become a loop.
Can someone advise if a) this is possible and b) a pointer on where to start ... I have gotten as far as
Code:
LastRow = Range("A65536").End(xlUp).Row
For a = 6 To LastRow
Cells(a, 1).Select
ActiveSheet.CheckBoxes.Add(425, 305, 25, 30).Select
ActiveSheet.Shapes.Range(Array("CheckBox A1")).Select
ActiveSheet.Shapes("CheckBox A1").Name = "CheckBox A1"
Selection.Name = "CheckBox A1"
With Selection
.Value = xlOff
.LinkedCell = "A1"
.Display3DShading = False
End With
Next a
but this breaks really easily as I'm trying to manually pick up the checkbox name