Guest_imported
New member
- Jan 1, 1970
- 0
hi,
I'm trying to code check boxes in Excel to assign one value if they're checked and another if they are not. Here's what I got:
If Worksheets("Sheet1".CheckBoxes(1) = True Then
M = 1
Else
M = 0
If Worksheets("Sheet1".CheckBoxes(2) = True Then
T = 1
Else
T = 0
don't know where the problem is, but Excel doesn't like the code and goes to the "else" part whether it's true or not.
Help!
I'm trying to code check boxes in Excel to assign one value if they're checked and another if they are not. Here's what I got:
If Worksheets("Sheet1".CheckBoxes(1) = True Then
M = 1
Else
M = 0
If Worksheets("Sheet1".CheckBoxes(2) = True Then
T = 1
Else
T = 0
don't know where the problem is, but Excel doesn't like the code and goes to the "else" part whether it's true or not.
Help!