Stubby
Board Regular
- Joined
- Mar 5, 2002
- Messages
- 188
Hello Fellow Excel users.
I have the following code that adds checkboxes to various cells in my spreadsheet:
Set chbox2 = Sheet9.CheckBoxes.Add(.Left, .Top, 200, .Height)
chbox2.Caption = "Click to copy to " & Range("plantype")
chbox2.LinkedCell = .Offset(0, 2).Address(External:=True)
.Offset(0, 2).Font.ColorIndex = 2
chbox2.Name = "Plan" & curformrow
chbox2.OnAction = "LPlan
Al was going well until I sorted my data! To my horror the checkboxes didn't move with the sort.
Therefore my question is: Can you link a checkbox to a cell so that it will move when the data is sorted.?
I have the following code that adds checkboxes to various cells in my spreadsheet:
Set chbox2 = Sheet9.CheckBoxes.Add(.Left, .Top, 200, .Height)
chbox2.Caption = "Click to copy to " & Range("plantype")
chbox2.LinkedCell = .Offset(0, 2).Address(External:=True)
.Offset(0, 2).Font.ColorIndex = 2
chbox2.Name = "Plan" & curformrow
chbox2.OnAction = "LPlan
Al was going well until I sorted my data! To my horror the checkboxes didn't move with the sort.
Therefore my question is: Can you link a checkbox to a cell so that it will move when the data is sorted.?