Bonjour,
il y a aussi ceci en fonction perso (pas de moi, mais efficace ) :
usage: = courrieltrouve(a2;b2;c2;$d$2:$d$10) d2:d10est la zone des adresses mail
Function courrieltrouve(ENTREPRISE As String, NOM As String, PRENOM As String, MAIL As Range) As String
On Error Resume Next
Dim f1, f2 As Range
' ENTREPRISE et NOM
Set f1 = MAIL.Find(ENTREPRISE)
Set f2 = f1.Find(NOM)
If (Not f2 Is Nothing) Then
courrieltrouve = f2.Formula
Else
' NOM et PRENOM
Set f1 = MAIL.Find(NOM)
Set f2 = f1.Find(PRENOM)
If (Not f2 Is Nothing) Then
courrieltrouve = f2.Formula
Else
' NOM
Set f1 = MAIL.Find(NOM)
If (Not f1 Is Nothing) Then
courrieltrouve = f1.Formula
Else
' PRENOM
Set f1 = MAIL.Find(PRENOM)
If (Not f1 Is Nothing) Then
courrieltrouve = f1.Formula
Else
' PRENOM 3
Set f1 = MAIL.Find(Left(PRENOM, 3))
If (Not f1 Is Nothing) Then
courrieltrouve = f1.Formula
Else
courrieltrouve = "#NF"
End If
End If
End If
End If
End If
End Function