ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA to get List of Unique Items from column (https://www.excelbanter.com/excel-programming/277819-re-vba-get-list-unique-items-column.html)

Jim Rech

VBA to get List of Unique Items from column
 
While I see you're building an answer array you might consider using some of
Excel's built-in Advanced Filter functionality to create an answer table.
You could even read the result into an array if that is really the end
result you want:

Range("J2", Range("J2").End(xlDown)).AdvancedFilter xlFilterCopy, ,
Range("K2"), True

--
Jim Rech
Excel MVP




All times are GMT +1. The time now is 02:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com