Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
assume the upper left corner of the list/range will be in Cell B9 on sheet
Data and the range will be surrounded by at least one blank column/row on each side. The list is already built when the useform is shown. the listbox is on a userform: Private Sub Userform_Initialize() with worksheets("Data") set rng = .range("B9").CurrentRegion End with listbox1.RowSource = rng.Address(1,1,xlA1,True) Listbox1.Columncount = 2 end Sub -- Regards, Tom Ogilvy "Graham Whitehead" wrote: Hi, i have a program which scans for data and then collects a list in two columns. One column denoting a name and the adjescent column denoting the number of occurances. The length of the list can vary quite dramatically. My question is how to add this range into a list box at runtime. Can anyone help? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Populating a cell based on a specific date/combo | Excel Worksheet Functions | |||
.AddItem list and populating combobox with created list | Excel Discussion (Misc queries) | |||
Populating Specific Lists Based on Criteria | Excel Programming | |||
populating list | Excel Programming | |||
Populating dropdown list 2 with data depending upon what was selected in list 1 | Excel Programming |