Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Displaying Unique Values in a Combobox

I have combobox1 which references Values in Column A.
There may be multiple
values with the same name in this Column. For example if
the value "Todd"
was in the Column in 4 different locations, the combobox
will display the
value "Todd" 4 times in the order in which they occur in
the Column. I do
not want this.

My code is below
ComboBox1.RowSource = "OFFSET(" & Worksheets(1).Name & "!
A1,,,COUNTA(" &
Worksheets(8).Name & "!A:A))"

How do I modify or what do I add to this code to make it
list only unique
values?

Thank you

Todd Huttensitne

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Displaying Unique Values in a Combobox

Todd,

John Walkenbach has a tip for this at:

http://j-walk.com/ss/excel/tips/tip47.htm

hth,

Doug

"Todd Htuttenstine" wrote in message
...
I have combobox1 which references Values in Column A.
There may be multiple
values with the same name in this Column. For example if
the value "Todd"
was in the Column in 4 different locations, the combobox
will display the
value "Todd" 4 times in the order in which they occur in
the Column. I do
not want this.

My code is below
ComboBox1.RowSource = "OFFSET(" & Worksheets(1).Name & "!
A1,,,COUNTA(" &
Worksheets(8).Name & "!A:A))"

How do I modify or what do I add to this code to make it
list only unique
values?

Thank you

Todd Huttensitne



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 237
Default Displaying Unique Values in a Combobox

Thank you. Will take a look at that when I get home.


-----Original Message-----
Todd,

John Walkenbach has a tip for this at:

http://j-walk.com/ss/excel/tips/tip47.htm

hth,

Doug

"Todd Htuttenstine"

wrote in message
...
I have combobox1 which references Values in Column A.
There may be multiple
values with the same name in this Column. For example

if
the value "Todd"
was in the Column in 4 different locations, the combobox
will display the
value "Todd" 4 times in the order in which they occur in
the Column. I do
not want this.

My code is below
ComboBox1.RowSource = "OFFSET(" & Worksheets(1).Name

& "!
A1,,,COUNTA(" &
Worksheets(8).Name & "!A:A))"

How do I modify or what do I add to this code to make it
list only unique
values?

Thank you

Todd Huttensitne



.

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
Unique Values, not Unique Records steph44haf Excel Discussion (Misc queries) 1 May 12th 10 07:52 PM
Using Unique Values in as a combobox value list Ayo Excel Discussion (Misc queries) 0 March 7th 08 01:51 PM
Displaying unique entries from a filtered list [email protected] Excel Worksheet Functions 4 April 26th 06 06:54 PM
Displaying only unique values, PLEASE HELP jezzica85 Excel Discussion (Misc queries) 3 February 22nd 06 10:58 AM
Displaying all the states in a VBA combobox Todd Huttenstine[_2_] Excel Programming 2 January 7th 04 02:24 AM


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