Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Unique Item
Unique Item
Resolved · Low Priority · Version 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?
For upcoming training course dates see: Pricing & availability
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.
|
