Re : Formule recherche V en VBA + if et une boucle.
Bonjour a tous,
A titre d'info j'ai reussi a trouver la reponse:
pour ceux que ça intéresse :
If .Cells(i, 6) = "C" Then
If Application.Vlookup(.Cells(i, 2), Ws2.Range("B3:E100"), 4, False) > .Cells(i, 11) And Application.Vlookup(.Cells(i, 2), Ws2.Range("B3:E100"), 4, False) < .Cells(i, 12) Then
.Cells(i, 1) = "a " & CStr(.Cells(i, 12) - Application.Vlookup(.Cells(i, 2), Ws2.Range("B3:E100"), 4, False)) & " heures"
End If
End If
Merci legolas