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 How to get entries on a list box on a form

Hi,

I have a number of entries that I would like to list on a form on a listbox.
I've forgotten how to do this.

I need to get the following entries "Toronto", "Oakville", "Vancouver"

Could anyone help me out


thanks in advance

Sandra
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to get entries on a list box on a form

by form I assume you mean Userform.

Private Sub Userform_Initialize()
with listbox1
.AddItem "Toronto"
.AddItem "Oakville"
.AddItem "Vancouver"
End With
End Sub

--
Regards,
Tom Ogilvy


"Grd" wrote:

Hi,

I have a number of entries that I would like to list on a form on a listbox.
I've forgotten how to do this.

I need to get the following entries "Toronto", "Oakville", "Vancouver"

Could anyone help me out


thanks in advance

Sandra

  #3   Report Post  
Posted to microsoft.public.excel.programming
Grd Grd is offline
external usenet poster
 
Posts: 118
Default How to get entries on a list box on a form

That works exactly as I wanted
Thanks very much

"Tom Ogilvy" wrote:

by form I assume you mean Userform.

Private Sub Userform_Initialize()
with listbox1
.AddItem "Toronto"
.AddItem "Oakville"
.AddItem "Vancouver"
End With
End Sub

--
Regards,
Tom Ogilvy


"Grd" wrote:

Hi,

I have a number of entries that I would like to list on a form on a listbox.
I've forgotten how to do this.

I need to get the following entries "Toronto", "Oakville", "Vancouver"

Could anyone help me out


thanks in advance

Sandra

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
Form behind cell entries pdberger Excel Discussion (Misc queries) 0 March 13th 08 10:12 PM
how to identify unique list of 200 random entries from a list of 3 tjb Excel Worksheet Functions 3 August 13th 07 02:15 PM
make a list from another list ignoring duplicate entries from orig Kroka Excel Worksheet Functions 1 March 7th 07 10:36 PM
how to get a list of entries onto a form listbox Grd Excel Programming 1 November 30th 05 07:36 PM
Need to create unique list from list of multiple entries Jeff Excel Programming 1 September 17th 05 05:37 AM


All times are GMT +1. The time now is 12:37 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"