ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   listboxes (https://www.excelbanter.com/excel-programming/323754-listboxes.html)

[email protected]

listboxes
 
how can i set the control source of a list box to return the entire row
form a list

john


Tom Ogilvy

listboxes
 
You can't. You would have to write code to populate your destination with
that information.

--
Regards,
Tom Ogilvy

wrote in message
ups.com...
how can i set the control source of a list box to return the entire row
form a list

john




[email protected]

listboxes
 
any hints or examples tom

regards

john


Tom Ogilvy

listboxes
 
Private Sub Listbox1_Click()
rw = 1
cells(rw,1) = Listbox1.Value
for i = 1 to listbox1.Columncount -1
cells(rw,i + 1).Value = listbox1.list(Listbox1.ListIndex, i)
Next
End Sub

Above pseudo code would represent and approaqch

--
Regards,
Tom Ogilvy



wrote in message
oups.com...
any hints or examples tom

regards

john





All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com