Listbox nightmare

dma431

Board Regular
Joined
Jul 16, 2017
Messages
82
Hi,
I've been trying to figure this out for a while but my VBA is not at that level.
I have a multi-selection listbox with the checkboxes (fmListStyleOption) that feeds it's input to a cell. If I open the listbox again, the input will be added to the existing value of the cell.
The problem is, if I select an item in the listbox, that already exists in the cell, then I end up with a duplicate.
What I wanted to accomplish is for the listbox to check the existing cell values and put a checkmark next to those items, so only new items can be added.
Does that make sense? Is it possible?
I would really appreciate the help. Thanks.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
a sample of data with what you already have in the cell would be good to see. You really just need 2 sets of code attached to the listbox. Is the listbox on the sheet or a userform?
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top