Bonjour le forum,
petite question, dans ce genre de boucle, comment remplacer le "Exit Sub" si X<>"" par "passer à la ligne suivante"?
Merci
Dim Sh As Worksheet, C As Range, x As Range, L As Long
deb = Timer
With ActiveSheet
' Colonne AF
For Each x In Range("V3", Cells(Rows.Count, "V").End(xlUp)).Offset(, 10)
'If X <> "" Then Exit Sub
For Each Sh In Sheets
If Left(Sh.Name, 1) <> "L" And Sh.Name <> ActiveSheet.Name Then
With Sh
L = .Range("A:A").Find("*", , , , xlByRows, xlPrevious).Row
For Each C In .Range("X3:X" & L)
If C = x.Offset(, -10) Then
x = C.Offset(, 8)
End If
Next C
End With
End If
Next Sh
Next x