unique item
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Unique Item

Unique Item

resolvedResolved · Low Priority · Version 2003

replyReply Thu 19 Mar 2009, 16:50Delegate David said...

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?

For upcoming training course dates see: Pricing & availability

replyReply Fri 20 Mar 2009, 11:06Trainer Stephen said...

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.

 

Please browse our web site to find out more about
excel training companies london and other Microsoft training courses.

Excel tip:

Status Bar Functions

When using the SUM, MIN, MAX, AVERAGE and COUNT functions, the result of such calculations are displayed in the worksheet.

However, if a range of cells, containing numbers, is highlighted, and then a right-mouse click is performed at the bottom right side of the status bar, then the result of those functions will be displayed.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard