Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Make an AutoFilter like listbox

Posted on 2000-03-05
6
Medium Priority
?
390 Views
Last Modified: 2008-01-09
I would like to make a listbox based on a column of data in an Excel spreadsheet, just like the one generated when you turn the AutoFilter on.  (I would like it to contain one of every different entry in the column, arranged alphabetically.) How do I do this?  Is there a function I can use? Thank you.  
0
Comment
Question by:to_adam
  • 5
6 Comments
 

Author Comment

by:to_adam
ID: 2771889
Adjusted points from 50 to 343
0
 

Author Comment

by:to_adam
ID: 2771890
Please, does anyone have any ideas?  Is it simply impossible? Or very difficult?  
0
 
LVL 1

Accepted Solution

by:
riduce earned 1372 total points
ID: 2920602
Range("D1:D15").Select
    Selection.Sort Key1:=Range("D1"), Order1:=xlAscending, Header:=xlGuess, _
        OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
    Selection.AutoFilter
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:to_adam
ID: 2946998
Answer accepted
0
 

Author Comment

by:to_adam
ID: 2946999
Thank you very very much... I'm just having a hard time believing it's that easy!   I spent over 3 hours trying to work that out, and have now waited over 3 months for the answer!  Thank-you very much!!
0
 

Author Comment

by:to_adam
ID: 2971139
YIKES...  I can't get that to work in a dialog box though. (It just works on the spreadsheet itself.)  Is their any way to create an autofilter-like listbox in a form?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question