Bonjour Banzai64,
J'ai un souci avec un code, en fait le premier ci dessous marche, mais je ne comprends pas pourquoi l'autre ne marche pas
Marche
For J = 2 To F5.Range("J" & Rows.Count).End(xlUp).Row
Set Cel = F4.Columns("AM").Find(what:=F5.Range("J" & J), LookIn:=xlValues, lookat:=xlWhole)
If Not Cel Is Nothing Then
If UCase(Trim(F4.Range("AN" & Cel.Row))) = UCase("axa Court Terme") Then
F1.Range("A" & Ligne) = F5.Range("J" & J)
F1.Range("B" & Ligne) = F5.Range("P" & J)
Ligne = Ligne + 1
End If
End If
Next J
et celle la ne marche pas
For J = 2 To F5.Range("J" & Rows.Count).End(xlUp).Row
Set Cel = F4.Columns("AM").Find(what:=F5.Range("J" & J), LookIn:=xlValues, lookat:=xlWhole)
If Not Cel Is Nothing Then
If UCase(Trim(F4.Range("C" & Cel.Row))) = UCase("equities") And _
UCase(F4.Range("AX" & Cel.Row)) = UCase("indirect holding") And UCase(F4.Range("CL" & Cel.Row)) Like "ZONE EUROPE*" Then
F1.Range("A" & Ligne) = F5.Range("J" & J)
Ligne = Ligne + 1
End If
End If
Next J
Merci de ton aide !!!
Cdt,
Aminata