Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have 12 Checkboxes on a form named cb1 to cb12. From within a for loop I need to test 1 to 12 step 1 For i = 1 to 12 step 1 how do I test checkbox value for cb & i e.g. if i = 1, I need value cb1 if i = 7, I need to value of cb7 next 1 thanks in advance -- mudraker ------------------------------------------------------------------------ mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473 View this thread: http://www.excelforum.com/showthread...hreadid=528973 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim iCtr as long
for ictr = 1 to 12 msgbox me.controls("CB" & ictr).value next ictr mudraker wrote: I have 12 Checkboxes on a form named cb1 to cb12. From within a for loop I need to test 1 to 12 step 1 For i = 1 to 12 step 1 how do I test checkbox value for cb & i e.g. if i = 1, I need value cb1 if i = 7, I need to value of cb7 next 1 thanks in advance -- mudraker ------------------------------------------------------------------------ mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473 View this thread: http://www.excelforum.com/showthread...hreadid=528973 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
checkbox on form reset from checkbox on sheet | Excel Programming | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions | |||
Use Checkbox Value or Public Variable? | Excel Programming | |||
Using a variable to represent a Checkbox Name(OLEObject) | Excel Programming |