Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default combox question

how can i list unique values in a combobox from a range? have about 40 rows, 1
column with about 5 unique descriptors i want to list and have the user select
one.

tried advanced filter and it shows the unique values in the range, but i
couldn't populate the combobox with the unique entries.

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default combox question

this worked unless someone has a better idea

Worksheets("emp").Range("g2:g40").AdvancedFilter _
xlFilterCopy, , Range("Q2"), True
glastrow = Worksheets("emp").Range("Q100").End(xlUp).Row
With Me.ComboBox1

..RowSource = "Q2:Q" & glastrow
End With

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
how can i list unique values in a combobox from a range? have about 40 rows, 1
column with about 5 unique descriptors i want to list and have the user select
one.

tried advanced filter and it shows the unique values in the range, but i
couldn't populate the combobox with the unique entries.

--


Gary





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default combox question

this isn't really cooperating. i can't set the row source to a hidden sheet. any
way around this?

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
how can i list unique values in a combobox from a range? have about 40 rows, 1
column with about 5 unique descriptors i want to list and have the user select
one.

tried advanced filter and it shows the unique values in the range, but i
couldn't populate the combobox with the unique entries.

--


Gary





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default combox question

i think i have it

"'Sheet1'!Q2:Q" & lastrow

doing pretty good responding to my own posts<g
--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
this isn't really cooperating. i can't set the row source to a hidden sheet.
any way around this?

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
how can i list unique values in a combobox from a range? have about 40 rows,
1 column with about 5 unique descriptors i want to list and have the user
select one.

tried advanced filter and it shows the unique values in the range, but i
couldn't populate the combobox with the unique entries.

--


Gary







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
Combox Box and 3 worksheets craig456[_2_] Excel Programming 0 March 24th 06 03:07 PM
Combox Box and 3 worksheets craig456 Excel Programming 0 March 24th 06 03:06 PM
Inserting a combox Stef Excel Programming 0 February 23rd 06 05:37 PM
clear combox Jahunga[_2_] Excel Programming 0 November 17th 04 02:51 PM
Combox box question David Goodall Excel Programming 2 April 22nd 04 08:16 AM


All times are GMT +1. The time now is 03:39 PM.

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"