Hello All,
I have a table of data where in column C I have values that may repeat. I'd like to find the duplicate values and insert rows above each of them using vba. Any thoughts on how to do this? I've attached an image of a sample data set where the column of peoples names have duplicates. In the table on the right this is what I'd like it to look like once the macro runs and adds rows above the duplicated values (and highlights the empty rows in black).
Please note that Ralph repeats in consecutive rows but Bob was not consecutive. It would still be a duplicate value and therefor a row would be added above Bob.
Thanks in advance for any help!
I have a table of data where in column C I have values that may repeat. I'd like to find the duplicate values and insert rows above each of them using vba. Any thoughts on how to do this? I've attached an image of a sample data set where the column of peoples names have duplicates. In the table on the right this is what I'd like it to look like once the macro runs and adds rows above the duplicated values (and highlights the empty rows in black).
Please note that Ralph repeats in consecutive rows but Bob was not consecutive. It would still be a duplicate value and therefor a row would be added above Bob.
Thanks in advance for any help!