Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have some VBA code which takes information from checkboxes on a form There are 10 check boxes and basicaly i want to go through a series o if statements whe if chkBox1 = True array(0) = "AA" if chkBox2 = True array(1) = "BB" ...etc But obviously this would only work if all check boxes were selected how would i go about adding to the end of array no matter how man values are already stored in it? I was thinking something like counter = 0 if chkBox1 = True array(counter) = "AA" counter = counter + 1 else 'do nothing if chkBox2 = True array(counter) = "BB" counter = counter +1 else 'do nothing But was just wondering if there was any kind of add to end of arra function I could call? Also, is it possible to return the length of an array? i.e how man values are stored in it? Thanks in advanc -- br_turnbul ----------------------------------------------------------------------- br_turnbull's Profile: http://www.excelforum.com/member.php...fo&userid=2747 View this thread: http://www.excelforum.com/showthread.php?threadid=47330 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex conditional summing - array COUNT works, array SUM gives#VALUE | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Assigning 10x1 array to 2nd collumn of 10x3 array | Excel Programming | |||
variant array containing cel adresses convert to actual ranges-array | Excel Programming |