Basically I am trying to do this
Sub(CheckBoxNumber as Integer)
Sheet1.CheckBox"CheckBoxNumber".Disabled = True
End Sub
Will this code work? If not how do I reference a CheckBox in that way?
My dilema is I have approx 5 checkboxes on a sheet, and supposing that all checkboxes are unchecked:
If I check CheckBox1 then that one does not get disabled. If the next check box I click is CheckBox 2 this will cause CheckBox1 to be disabled. The only way CheckBox1 will be enabled is if CheckBox2 is unchecked, which would enable CheckBox1 and allow it to be unchecked.
Sub(CheckBoxNumber as Integer)
Sheet1.CheckBox"CheckBoxNumber".Disabled = True
End Sub
Will this code work? If not how do I reference a CheckBox in that way?
My dilema is I have approx 5 checkboxes on a sheet, and supposing that all checkboxes are unchecked:
If I check CheckBox1 then that one does not get disabled. If the next check box I click is CheckBox 2 this will cause CheckBox1 to be disabled. The only way CheckBox1 will be enabled is if CheckBox2 is unchecked, which would enable CheckBox1 and allow it to be unchecked.