Set sheet1 = ThisWorkbook.Sheets("Nom_de_la_feuille 1" )
Set sheet2 = ThisWorkbook.Sheets("Nom_de_la_feuille 2" )
Ecol_no = 2
Erow_no = 2
Do While Not IsEmpty(Sheet1.Cells(Erow_no, Ecol_no).Value)
Acol_no = 1
Arow_no = 1
flag_found = "N"
Do While Not IsEmpty(Sheet2.Cells(Arow_no, Acol_no).Value)
If (sheet1.Cells(i, 2).Value = sheet2.Cells(j, 1).Value) Then
flag_found = "Y"
Exit Loop
End If
Arow_no = Arow_no + 1
Loop
If (flag_found = "N" ) Then
Worksheets("EXTRACTION" ).Cells(Erow_no, 10).Value = "Oui"
Else: Worksheets("EXTRACTION" ).Cells(Erow_no, 10).Value = "Non"
End If
Erow_no = Erow_no + 1
Loop
|