Hi all, I am trying to fix a piece of vba code to copy duplicate rows based on a chosen range and copy all the duplicates to a new excel sheet.
So far the code is working almost to my expectations, except that the code copies additional rows with blank cells. Below is an illustration of my issue:
The picture below shows the data sample that i want to check for duplicate rows based on. When i run the macro i will be asked to select my range so i will highlight A1 to C5.
1.png
The following result below is then copied to the new sheet. The rows highlighted in green are the correct duplicates i expected but additional ones that i highlighted in red appears.
2.png
Here is the code and i have also attached a sample of the excel file with the macro:
Bookmarks