i am looping through fields A and C to get duplicates:
But i want to make it case sensitive. pls help'concatenate the fields for which duplicate is to be checked
For i = 2 To lastrownum
data_sheet.Cells(4, 1) = data_sheet.Cells(1, field1) & data_sheet.Cells(3, field2)
Next i
'list the duplicates
For j = 2 To lastrownum
If WorksheetFunction.CountIf(Range("D2:D" & lastrownum), Range("D" & j)) > 1 Then
data_sheet.Cells(5, 2) = "Duplicate"
End If
Next j
Bookmarks