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 |
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 |
All times are GMT +1. The time now is 01:18 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com