Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default ComboBox displays duplicates - please help

Please Help!
In my ComboBox property
I have a ListFillRange 'Input data'!C1 - C200

Column 'C' has duplicate names.
I can't edit or change column 'C'

How do I write code so that it will not display
duplicates when selecting the comboBox.

I think a function like this but not sure how to write it...
in Properties for the combobox.
I would set the following to pass back name in column 'C' but filter out
duplicates.

ListFillRange = NoDuplicates("C1:C200")

Thank you for your help
--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ComboBox displays duplicates - please help

John Walkenbach shows how to use a collection to get a unique list. He also
shows how that list can be sorted (you may want to do that):
http://j-walk.com/ss/excel/tips/tip47.htm

Jeff wrote:

Please Help!
In my ComboBox property
I have a ListFillRange 'Input data'!C1 - C200

Column 'C' has duplicate names.
I can't edit or change column 'C'

How do I write code so that it will not display
duplicates when selecting the comboBox.

I think a function like this but not sure how to write it...
in Properties for the combobox.
I would set the following to pass back name in column 'C' but filter out
duplicates.

ListFillRange = NoDuplicates("C1:C200")

Thank you for your help
--
Jeff


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default ComboBox displays duplicates - please help

Thank you, it is very helpful. :-)

--
Jeff


"Dave Peterson" wrote:

John Walkenbach shows how to use a collection to get a unique list. He also
shows how that list can be sorted (you may want to do that):
http://j-walk.com/ss/excel/tips/tip47.htm

Jeff wrote:

Please Help!
In my ComboBox property
I have a ListFillRange 'Input data'!C1 - C200

Column 'C' has duplicate names.
I can't edit or change column 'C'

How do I write code so that it will not display
duplicates when selecting the comboBox.

I think a function like this but not sure how to write it...
in Properties for the combobox.
I would set the following to pass back name in column 'C' but filter out
duplicates.

ListFillRange = NoDuplicates("C1:C200")

Thank you for your help
--
Jeff


--

Dave Peterson

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
inserted comment not displays in the cell it displays on top row S.Kumar Excel Worksheet Functions 1 September 22nd 09 07:32 PM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
duplicates in validation list combobox chelle Excel Discussion (Misc queries) 1 December 7th 06 05:52 PM
Combobox items determined by the selection in another combobox Alerion Excel Programming 2 September 13th 06 01:07 PM
Formula window displays correct answer while cell displays incorre MMV Excel Worksheet Functions 3 November 10th 04 09:28 PM


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