Forum Discussion
ehowarth
May 06, 2022Copper Contributor
Concatenate values from a listbox into a cell
Hi Everyone, I have a problem that I have tried every solution I can think of to solve. I have a Listbox that contains multiple contract codes (A029, A031, A032, etc...) that is set to multi-...
ehowarth
May 06, 2022Copper Contributor
Thank you! This works almost perfectly and is similar to one of the codes I tried before. My only issue is that I can't have a space after the comma separating the concatenated values. When I remove the space from the code, it cuts off the first digit of the first concatenated value.
If lbx.Selected(i) Then
s = s & "," & lbx.List(i)
For instance if I select A080 and A092 the value in C7 would read 080,A092
If lbx.Selected(i) Then
s = s & "," & lbx.List(i)
For instance if I select A080 and A092 the value in C7 would read 080,A092
HansVogelaar
May 06, 2022MVP