Citation :
 
 
    ' To R2 to the end of file2, I search if my "Answer" id has a copy in the "Ttlcount". / De R2 jusqu'à la fin du fichier, je cherche si mon id "Answer" a une copie dans le "Ttlcount".
    For a = 2 To z
      id = CStr(Workbooks(fileName2).Sheets("Rejected" ).Range("R" & a).Value)
        If id <> "" Then
        Workbooks(fileName).Sheets(1).Activate
        On Error Resume Next
        Set wordFound = Cells.Find(What:=id, LookAt:=xlPart)
 ' If I find a copy, My copy number grow, I color the actual id row in red and I write "Yes" in column "Z". / Si je trouve une copie, mon nombre de copie augmente, je colorie la ligne du id actuel en rouge et j'écris "Yes" dans la colonne "Z".
          If Not wordFound Is Nothing Then
            wordFound.Select
            ActiveCell.Select 'I color the copy too. / Je colorie la copie également.
            With Selection.Interior
              .Color = RGB(255, 0, 0)
              .Pattern = xlSolid
            End With
            Workbooks(fileName2).Sheets("Rejected" ).Range("Z" & a) = "Yes"
            Workbooks(fileName2).Sheets("Rejected" ).Range("Z" & a).EntireRow.Interior.Color = RGB(255, 50, 50)
            Workbooks(fileName2).Sheets("Rejected" ).Range("Y2" ).EntireColumn.Interior.Color = RGB(0, 0, 255)
            nb = nb + 1
 ' Else if I find nothing, I color the actual id row in green and I write "No" in column "Z". / Sinon si je trouve rien, Je colorie la ligne du id actuel en vert et j'écris "No" dans la colonne "Z".
         Else
           Workbooks(fileName2).Sheets("Rejected" ).Range("Z" & a) = "No"
           Workbooks(fileName2).Sheets("Rejected" ).Range("Z" & a).EntireRow.Interior.Color = RGB(0, 255, 0)
         End If
 ' If my id = "", then I color the "Z" column in gray. / Si mon id = "", alors je colorie la colonne "Z" en gris.
      Else
        Workbooks(fileName2).Sheets("Rejected" ).Range("Z" & a).Interior.Color = RGB(100, 100, 100)
      End If
    
    Next a
      message = "There are " & nb & " copy. / Il y a " & nb & " doublons dans le fichier"
    MsgBox message, vbDefaultButton1
  
 
   |