Thread: Listbox in form
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PA[_2_] PA[_2_] is offline
external usenet poster
 
Posts: 15
Default Listbox in form

Hi,

Trying to get a listbox to work in a form... but not quite there yet!

The list should read the info from a range, but it empty... The code I
am using is below

Private Sub clients_select_Initialize()
Dim rng As Range, cel As Range
Set rng = ActiveWorkbook.Sheets("clients").Range("b2:b200")
With Me.clients_select_list
.Clear
For Each cel In rng.Cells
.AddItem cel.Value
Next
End With
End Sub

thanks a million