Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Populating Lists in forms


Hello all,

I have a list which I can get to appear in a list box.

What I want to do is then show a list of 6 items which are unique to
the item selected in the first box.

Every item in the first box has its own set of unique values

Any ideas??

Thanks

Mark


--
marksince1984
------------------------------------------------------------------------
marksince1984's Profile: http://www.excelforum.com/member.php...o&userid=33484
View this thread: http://www.excelforum.com/showthread...hreadid=549238

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Populating Lists in forms

With no other details, maybe this will inspire you.

Private Sub Listbox1_Click()
Dim cell as Range
Dim secondList as Range
set secondList = Worksheets("Sheet2").Range("A1").CurrentRegion
' remove headers
set secondList = secondList.offset(1,0).Resize(Secondlist.Rows.coun t-1,1)
Listbox2.Clear
for each cell in secondlist
if cell.Value = Listbox1.Value then
Listbox2.AddItem cell.Offset(0,1)
end if
Next
End sub

--
Regards,
Tom Ogilvy


"marksince1984"
wrote in message
news:marksince1984.2909za_1149639601.5537@excelfor um-nospam.com...

Hello all,

I have a list which I can get to appear in a list box.

What I want to do is then show a list of 6 items which are unique to
the item selected in the first box.

Every item in the first box has its own set of unique values

Any ideas??

Thanks

Mark


--
marksince1984
------------------------------------------------------------------------
marksince1984's Profile:

http://www.excelforum.com/member.php...o&userid=33484
View this thread: http://www.excelforum.com/showthread...hreadid=549238



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
dropdown lists and populating new table based on the selection Herbert Seidenberg Excel Discussion (Misc queries) 1 November 26th 08 05:54 AM
drop down lists and forms [email protected] Excel Worksheet Functions 0 August 31st 07 08:38 PM
Populating Drop-Down lists gtanti Excel Worksheet Functions 1 May 8th 06 04:41 PM
Populating Specific Lists Based on Criteria Kate Excel Programming 2 September 15th 05 09:55 PM


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