Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown List from values in a Cell Range

How do I get a list of only the nonblank values from a cell range?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Dropdown List from values in a Cell Range


For Each YourCell in YourRange
If ActiveCell.Value < Empty Then
YourCombo.AddItem ActiveCell.Value
End If
Next


"DrKacso" schreef in bericht
...
How do I get a list of only the nonblank values from a cell range?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown List from values in a Cell Range


Based on your question, Try........................

Range("YOUR RANGE").Select
Selection.AutoFilter 'Turns on AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="<" 'Selects not equa
to blank
Selection.AutoFilter 'Turns AutoFilter off, you dont need this en
bit as your selection will become unfiltered as soon as the code get
here!

Regards,
Simo

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=56965

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
return value from a dropdown list in other cell martinezfer Excel Discussion (Misc queries) 2 January 25th 12 07:03 PM
Can a dropdown list option add color/time to a range? Outbacker Excel Discussion (Misc queries) 1 March 22nd 07 09:22 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 0 July 5th 06 04:09 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 2 July 1st 06 10:53 AM
Allow selection of multiple values in dropdown list in excel Nancy @ CHR Excel Discussion (Misc queries) 2 April 13th 06 10:44 PM


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