Hi,
I'm creating a userform and there are some things I'd like to do in order to improve it but I don't know how to.
I would like first to number each listbox item (using ListBox1.ListCount I guess), so it would appear like this:
I'm also trying to be able to move lines within the listbox. The code as it is now only allows to move an item (not the item and its whole line). It would only moves the couple names, not its affiliated number. So if I were to move Mike + Tammy up of one line, they would now be couple #05 and Roger + Gabrielle would then be couple #06.
Also I would like to enable the Delete button when an item in the listbox is selected.
Thanks in advance for your help!
UserForm.xlsm - 0.03MB
I'm creating a userform and there are some things I'd like to do in order to improve it but I don't know how to.
I would like first to number each listbox item (using ListBox1.ListCount I guess), so it would appear like this:
Code:
01 Todd Britney
02 Jimi Meredith
03 Serge Amy
04 Richard Kim
05 Roger Gabrielle
06 Mike Tammy
07 Bill Jill
08 Jim Joyce
09 Phil Judy
10 Bebel Jules
11 Fredrik Helen
12 James Yolanda
...
I'm also trying to be able to move lines within the listbox. The code as it is now only allows to move an item (not the item and its whole line). It would only moves the couple names, not its affiliated number. So if I were to move Mike + Tammy up of one line, they would now be couple #05 and Roger + Gabrielle would then be couple #06.
Also I would like to enable the Delete button when an item in the listbox is selected.
Thanks in advance for your help!
UserForm.xlsm - 0.03MB