Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

unique item

ResolvedVersion 2003

David has attended:
Excel VBA Intro Intermediate course

Unique Item

What's the fastest way to select unique items from a list of data? For example, how would you find all the items sold by a particular salesperson?

RE: Unique Item

Hi David

Thank you for your question

I would suggest using the autofilter method of the range object. This has the following arguments

Worksheets("MySheet").Range("A1").AutoFilter _
field:=3, _
Criteria1:="Davolio"



Field is the field to filter on and criteria is the criteria.

Copy the above into your VBA, select autofilter and press Fo get detailed help

Regards

Stephen


Thu 26 Mar 2009: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Closing Multiple Workbooks quickly

When you have several workbooks open in Excel and want to just close them all at once:

1) Hold down the SHIFT key before selecting the File menu.

2) Once in File menu release SHIFT key and select Close All option.

3) All your files will close. If files require saving Excel will ask if you want to save the changes.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.