Public Function rec_val(cpt, dev)
Const ong = "1,2,19,20" ' feuilles recherche
Dim feu ' feuille recherchée
Dim idf As Integer ' indice feuille
Dim c_t As Range ' position compte
Dim d_v As Range ' position devise
feu = Split(ong, ",")
For idf = 0 To UBound(feu)
With Worksheets(feu(idf))
Set c_t = .Cells.Find(cpt, , xlValues, xlPart)
If Not c_t Is Nothing Then
Set d_v = .Columns("F").Find(dev, , xlValues, xlWhole)
If Not d_v Is Nothing Then
rec_val = d_v.Offset(0, -1)
Exit Function
End If
End If
End With
Next idf
rec_val = "Pas trouvé"
End Function