if it's an activeX-listbox, and the listbox contains a one-dimensional array:
![]()
sub snb() for j=0 to sheet1.listbox1.listcount-1 if sheet1.listbox1.selected(j) then c01 =c01 & "|" sheet1.listbox1.list(j) next if c01<>"" then sn=split(mid(c01,2),"|") sheet2.cells(rows.count,1).end(xlup).offset(1).resize(ubound(sn)+1)=application.transpose(sn) end if End Sub
Bookmarks