I´ve created a workbook in excel with a userform which allows you to import .csv data in a worksheet. Know I´ve the problem with duplicate rows. I found a solution here, but it is not working 100%. (Delete all duplicate rows Excel vba) The script delete most of the duplicate data, but there are still 2-5 duplicate rows. First I thought it´s the format of the cells, but thats not the problem...
Here is the makro:
Sub DeleteRows()
With ActiveSheet
Set Rng = Range("A1", Range("T1").End(xlDown))
Rng.RemoveDuplicates Columns:=Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), Header:=xlYes
End With
End Sub
The duplicate data which is left over start with a negativ number. I don´t know if this will help to find a solution ...