Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unique values in combobox2 in excel VBA

Hi all,

I want to add unique values in combobox2 once I select from combobox1.

Column A Column B
-------- --------
Girls Hair
Boys Hair
Veg Water
Non-Veg Water

Once I select Girls in combobox1 (retrieved from column 'A' in excel), it should show unique value of 'Hair' from column 'B' instead of twice in excel.

I want to add the unique values in combobox2 from column 'B' in excel where combobox1 text is equal to column 'A'.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Unique values in combobox2 in excel VBA

Hi all,

I want to add unique values in combobox2 once I select from
combobox1.

Column A Column B
-------- --------
Girls Hair
Boys Hair
Veg Water
Non-Veg Water

Once I select Girls in combobox1 (retrieved from column 'A' in
excel), it should show unique value of 'Hair' from column 'B' instead
of twice in excel.

I want to add the unique values in combobox2 from column 'B' in excel
where combobox1 text is equal to column 'A'.


Why are you using Combobox2? The purpose of a combobox is to provide a
list of items, not a unique value.

A formula will do what you want...

In B2:
=IF(OR(A2="Girls",A2="Boys"),"Hair","Water")

...and copy down!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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
Close DropDown of ComboBox2 & Open ComboBox1 on Error AFSSkier Excel Programming 1 October 9th 09 07:10 PM
excel unique values in column rodchar Excel Programming 2 November 17th 08 01:15 PM
How do I get the unique values from a column in excel? Durgesh M Excel Worksheet Functions 6 October 1st 08 12:50 PM
HOW DO I REMOVE UNIQUE VALUES IN EXCEL? andy Excel Worksheet Functions 3 November 29th 07 02:56 AM
filter unique values Excel vrijbergen Excel Programming 2 October 3rd 05 06:20 PM


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