magnamundian
New Member
- Joined
- May 26, 2009
- Messages
- 13
Hi
I'm looking to put together a VBA sub/module which, using the following variables:
Dim iOptions as Integer
iOptions = {spreadsheet refererence}
ReDim sNames(1 to iOptions) as string array
ReDim bSelected(0 to iOptions) as boolean array
Would achieve the following:
Populate a UserForm with {iOptions + 1} Checkboxes and an OK button.
Label the first CheckBox as "Select All" and all subsequent CheckBoxes according to the labels found in the {sNames} array.
When user ticks whatever number of checkboxes they want, the variable {bSelected} would be populated with either True or False based on whether the Checkbox was ticked (True) or not (False) with bSelected(0) being the "Select All" checkbox and all subsequent checkboxes being number 1, 2, 3... etc
This would need to be dynamic, i.e. the number of boxes required would go up or down.
Any thoughts?
I'm looking to put together a VBA sub/module which, using the following variables:
Dim iOptions as Integer
iOptions = {spreadsheet refererence}
ReDim sNames(1 to iOptions) as string array
ReDim bSelected(0 to iOptions) as boolean array
Would achieve the following:
Populate a UserForm with {iOptions + 1} Checkboxes and an OK button.
Label the first CheckBox as "Select All" and all subsequent CheckBoxes according to the labels found in the {sNames} array.
When user ticks whatever number of checkboxes they want, the variable {bSelected} would be populated with either True or False based on whether the Checkbox was ticked (True) or not (False) with bSelected(0) being the "Select All" checkbox and all subsequent checkboxes being number 1, 2, 3... etc
This would need to be dynamic, i.e. the number of boxes required would go up or down.
Any thoughts?