View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson[_3_] Jim Thomlinson[_3_] is offline
external usenet poster
 
Posts: 983
Default create entries on a listbox on a form

Here is some code that runs off the form initialize event. Load the form and
the listbox is populated...

Private Sub UserForm_Initialize()
With ListBox1
.AddItem "Paris"
.AddItem "Rome"
.AddItem "Milan"
End With
End Sub

If you wanted something more specific just ask...

HTH

"Grd" wrote:

Hi,

I'd like to get a list of towns on a listbox automatically. for example,
paris, milan, new york.

Any help would be appreciated.

Thanks in advance
GRd