mamuscia
asked on
Excel VBA 2010 - how to create a single dimension with unique values array from table column
I have a workbook that has a defined table on a sheet. I want to get the unique values from one of the columns in the table and put those unique values in an array so I can loop over them. A blank value should count as a unique value. How can this be accomplished? My table name is T_201311 and the column name is EnterpriseID.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks. this works and gives me the array I wanted.
Open in new window
Another way to do it is to create a dictionary object, which doesn't tolerate duplicates.