» Return unique items using VBA in Microsoft Excel
VBA macro tip contributed by Erlandsen Data Consulting offering Microsoft Excel Application development, template customization, support and training solutions
CATEGORY - Custom Functions , Printing in VBA
VERSION - All Microsoft Excel Versions
You can use the macro like this to copy all the unique items from A2:A100 to cell C1 and below:
FindUniqueValues Range("A2:A100"), Range("C1")
Sub FindUniqueValues(SourceRange As Range, TargetCell As Range)
SourceRange.AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=TargetCell, Unique:=True
End Sub
Book Store:
Recommended Books:
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Microsoft PowerPoint Version 2002 Step by Step
- Investing in Real Estate, Fourth Edition
- Real Estate Finance and Investments (Real Estate Finance and Investments, 11th Ed)
- The One Page Business Plan: Start With a Vision, Build a Company!
No comments have been submitted.

