Bonsoir micheldz
Vois ceci :
Option Explicit
Sub absents()
Dim a, i As Long, x As Range, dico As Object
Set dico = CreateObject("Scripting.Dictionary")
dico.comparemode = 1
With Sheets("Heures Salariés").Range("a1")
a = .CurrentRegion.Value
For i = 2 To UBound(a, 1)
dico(a(i, 1)) = Empty
Next
With Sheets("Salariés").Range("a1").CurrentRegion
a = .Value
For i = 1 To UBound(a, 1)
If Not dico.exists(a(i, 1)) Then
If x Is Nothing Then
Set x = .Cells(i, 1).Resize(, 2)
Else
Set x = Union(x, .Cells(i, 1).Resize(, 2))
End If
End If
Next
End With
If Not x Is Nothing Then
x.Copy .End(xlDown)(2)
Set x = Nothing
Else
MsgBox "Aucun absent"
End If
End With
End Sub
klin89