GenuineGin
01-09-2015, 03:53 PM
Hello,
I have a userform with a number of check boxes and a list box.
What I'm trying to achieve:
1) Click any selection of check boxes
2) Click a command button ("cmdRefresh")
3) Items are added to the list box to be displayed as a summary of what has been selected.
4) If a check box is unchecked, when the command button is pressed again the related list box entry is removed.
My issue is that there could be any number of entries in any order, so I don't know how I would reference specific list box items.
The order that the items are added to the list box can be fixed (i.e. they don't need to show in the order that they were clicked).
Is there a way to assign a 'permanent' index to list box items based on the check box clicked, regardless of how many are added to the list box or the order they are added? If not, how can I select them?
Many thanks
I have a userform with a number of check boxes and a list box.
What I'm trying to achieve:
1) Click any selection of check boxes
2) Click a command button ("cmdRefresh")
3) Items are added to the list box to be displayed as a summary of what has been selected.
4) If a check box is unchecked, when the command button is pressed again the related list box entry is removed.
My issue is that there could be any number of entries in any order, so I don't know how I would reference specific list box items.
The order that the items are added to the list box can be fixed (i.e. they don't need to show in the order that they were clicked).
Is there a way to assign a 'permanent' index to list box items based on the check box clicked, regardless of how many are added to the list box or the order they are added? If not, how can I select them?
Many thanks