I have a worksheet with many rows of IDs.
I would like to know the best way to write a VBA procedure that will look at the range of values in one column, and replace the entire range with only the unique values which appear in that range. So a column of 1000 IDs might reduce down to a column of 150 unique IDs. I would not like this procedure to affect the data in other columns in the worksheet.
So, say the initial column A was:
*IDs*
ID12
ID12
ID34
ID56
ID78
ID78
ID78
I would like it to replace the column with a new column A:
*IDs*
ID12
ID34
ID56
ID78
Thank you kindly.
Note: I know how to do this manually a few different ways, but I would like to cycle through and do this procedure for every non empty column on a sheet, and the columns are of varying length.