Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Again Filter:

Hello NG,

I have a worksheet with a lot of columns. One of these are FirstName
and Lastname. One row is one buying. I want to create a form with two
comboboxes. In the first are all Lastnames written. (I got them with
the AdvancedFilter Funktion.) If the user selects one Lastname the
second cbo should be filled with Firstnames that matches to the
Lastname.

Doese someone know how to handle this?


Best wishes

Peter

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Again Filter:

loop through the list of lastnames and if it matches, use additem to add it
to the list of the second combobox.

for each cell in Range("LastNames")
if cell.Value = cbo1.Value then
cbo2.Additem cell.offset(0,-1).Text
end if
Next

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Hello NG,

I have a worksheet with a lot of columns. One of these are FirstName
and Lastname. One row is one buying. I want to create a form with two
comboboxes. In the first are all Lastnames written. (I got them with
the AdvancedFilter Funktion.) If the user selects one Lastname the
second cbo should be filled with Firstnames that matches to the
Lastname.

Doese someone know how to handle this?


Best wishes

Peter



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Again Filter:

Thanks Tom :-)

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
DataFilterAuto Filter in excel 2007? TIJ New Users to Excel 2 November 13th 08 03:28 AM
Filter PivotTable dropdown items to match report filter Catherine D Excel Discussion (Misc queries) 1 August 16th 08 12:12 AM
Copy only visible cells after filter is applied/ sum after filter MAM Excel Worksheet Functions 0 April 9th 08 04:09 AM
Extract filter items from Drop-Down Automatic Filter karpatov Excel Programming 1 February 26th 06 06:03 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 03:25 AM.

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"