Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Grd Grd is offline
external usenet poster
 
Posts: 118
Default create entries on a listbox on a form

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter listbox data in a form? Vinod Excel Discussion (Misc queries) 1 January 11th 10 02:01 PM
How do I return the unique entries from a column to a listbox Dave Mc Excel Worksheet Functions 4 February 9th 05 08:02 AM
listbox option in form inquirer Excel Programming 2 April 7th 04 02:16 AM
User form with a listbox John Green[_2_] Excel Programming 4 December 30th 03 07:18 PM
Listbox/Form question Stuart[_5_] Excel Programming 1 August 24th 03 04:53 PM


All times are GMT +1. The time now is 08:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"