LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Populate a list box from a worksheet range

Good morning, all.

I'm sorry to say I'm now turning my attention to userforms (collective groan
from both hemispheres)

This one's quite easy, though (well, for SOMEone out there) Here's my code
to add some items to a listbox:

Private Sub UserForm_Initialize()
With lstEmployees
.AddItem "Dave"
.AddItem "Rob"
.AddItem "Greg"
.AddItem "Christina"
.AddItem "Mark"
End With
cmdAdd.Enabled = False
cmdRemove.Enabled = False
cmdRemoveAll.Enabled = False
End Sub

However, how to I popiulate the listbox with, say, A1:A6 (or a named range)
from (say) Shee t2?

Thanks in advance

Pete


 
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
Can excel populate a list from another worksheet Paulette Excel Discussion (Misc queries) 2 February 5th 10 09:34 PM
Lookup list from different worksheet & auto-populate multiple cell tomhelle Excel Discussion (Misc queries) 0 November 5th 08 05:37 PM
QUERY data range to populate separate worksheet? Greg Purnell[_2_] Excel Worksheet Functions 3 April 5th 07 01:49 PM
List box: Populate with Range Names CinqueTerra Excel Programming 2 October 11th 05 11:22 PM
Using a specific range to populate a list/combo box tanktata[_2_] Excel Programming 3 January 7th 04 09:45 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"