J
JD
Hello,
I currently have a userform in excel that has several checkboxes for the
user to select. The checkboxes then apply a string value if the user
selects the checkbox (ie. If chkbox.value = -1 then strname = "something"
else strname = "" ). The values are then placed into the active cell in
which the form was called.
What I want to do is create a string, separated by a delimiter, and place
the entire string into the active cell as the value. Currently, I have the
string put together, but it inserts delimiters even if there is no value.
For example, If I have four checkboxes, and only 2 are selected, then the
string value looks like ,,value,value .....What I would like to accomplish
is to put together the string of only checkboxes that are selected, and not
have values inserted into the string for blank values, or checkboxes that
have not been selected.
Any help is most appreciated.
Thanks
I currently have a userform in excel that has several checkboxes for the
user to select. The checkboxes then apply a string value if the user
selects the checkbox (ie. If chkbox.value = -1 then strname = "something"
else strname = "" ). The values are then placed into the active cell in
which the form was called.
What I want to do is create a string, separated by a delimiter, and place
the entire string into the active cell as the value. Currently, I have the
string put together, but it inserts delimiters even if there is no value.
For example, If I have four checkboxes, and only 2 are selected, then the
string value looks like ,,value,value .....What I would like to accomplish
is to put together the string of only checkboxes that are selected, and not
have values inserted into the string for blank values, or checkboxes that
have not been selected.
Any help is most appreciated.
Thanks