Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good Day Group,
How to do a "short" code that picks the text in the first Column of a ListBox (that has unknown rows). The picked text will be used in a For Next loop from ListBox Row(1) to the end. Brgds CG Rosén |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi GC
Private Sub CommandButton1_Click() Dim S As String Dim L As Long For L = 0 To ListBox1.ListCount - 1 S = S & ListBox1.List(L, 0) & vbNewLine Next MsgBox S End Sub HTH. Best wishes Harald "CG Rosén" skrev i melding ... Good Day Group, How to do a "short" code that picks the text in the first Column of a ListBox (that has unknown rows). The picked text will be used in a For Next loop from ListBox Row(1) to the end. Brgds CG Rosén |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Listbox Values | Excel Discussion (Misc queries) | |||
ListBox with Horizontal Values | Excel Worksheet Functions | |||
Fill values into a listbox matching selected values from a combobox | Excel Programming | |||
Compare Listbox values with Collection values | Excel Programming | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |