Hi all,
I have a bit of code which extracts data from source files. I'd like to be able to select checkboxes to extract the data from several files at once by choosing checkboxes.
Each checkbox will correspond to a file name.
I prefer form control because it seems easier to setup, but I'm not opposed to activeX if needed.
How do I read all the names of the checked boxes into an array when a macro is executed?
Example:
Checkboxes:
Name 1 - Checked
Name 2 - Checked
Name 3 - Not Checked
Name 4 - Checked
Name 5 - Not Checked
The result would be:
Dim cbSelections as Variant
cbSelections = array("Name 1", "Name 2", "Name 4")
Thanks in advance!
I have a bit of code which extracts data from source files. I'd like to be able to select checkboxes to extract the data from several files at once by choosing checkboxes.
Each checkbox will correspond to a file name.
I prefer form control because it seems easier to setup, but I'm not opposed to activeX if needed.
How do I read all the names of the checked boxes into an array when a macro is executed?
Example:
Checkboxes:
Name 1 - Checked
Name 2 - Checked
Name 3 - Not Checked
Name 4 - Checked
Name 5 - Not Checked
The result would be:
Dim cbSelections as Variant
cbSelections = array("Name 1", "Name 2", "Name 4")
Thanks in advance!