I am needing to create a list in Excel from one column in sheet 1 that will make up the list in a different column. The problem I have is that the 1st column(that will populate the list) may have the same entry in it several times along with several distinct entries. I dont wont to show duplicates or any blank cells in the list box. In VB I would just write a Select Distinct statement but in Excel I am not sure how this is done.
Wouldn't know how to write the complete code, but I would do this using an array.
Add the value of the first cell in your source range to your array.
Check if the value of the second cell is the same as the first entry in the array. If it is not increase the array size by one (ReDim Preserve) and add the cells value. If it is the same, ignore it.
Repeat step 2 for all other cells in your source range, but each time checking the value of the cell against all entries in the array. If the cells value already exists do nothing. If it doesn't exist redim and add.
Add your array to the required column (each individual entry being added to its own cell).
Hope this makes sense.
"Those things we must learn to do, we must learn by doing" (or hope somebody else will take pity and help out )