O
Owen
I am wondering if it is possible to use a For...Next method on a UserForm
which contains 13 checkboxes, where i need to evaluate and If/Then/Else
statement.
For example, currently my If/Then/Else works by evaluating each of the 13
checkboxes separately which makes for a lot of code.ie
If UserForm1.CheckBox1.value = True Then
....
....
Else
If UserForm1.CheckBox2.value = True Then etc
Can i use a For Next method along the lines of
For j= 1 to 13
If UserForm1.Checkbox(j).value = True Then
....
End If
Next J
Not sure if this is possible but would appreciate any help so i can reduce
the amount of code i need to reproduce.
Thanks
which contains 13 checkboxes, where i need to evaluate and If/Then/Else
statement.
For example, currently my If/Then/Else works by evaluating each of the 13
checkboxes separately which makes for a lot of code.ie
If UserForm1.CheckBox1.value = True Then
....
....
Else
If UserForm1.CheckBox2.value = True Then etc
Can i use a For Next method along the lines of
For j= 1 to 13
If UserForm1.Checkbox(j).value = True Then
....
End If
Next J
Not sure if this is possible but would appreciate any help so i can reduce
the amount of code i need to reproduce.
Thanks