Citation :
Sub didier1809()
With Sheets("Indiv" ) l = 1: c = 1 Do ' recherche Set sel = .Cells.Find(What:=rech, after:=.Cells(l, c), LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) If sel Is Nothing Then Exit Do If sel.Column <= c And sel.Row <= l Then Exit Do c = sel.Column l = sel.Row
cellcontent = .Cells(c, l).Value traitement = "[" & c & "," & l & "] " & cellcontent & vbCrLf
msg = msg & traitement(l, c) Range(Cells(c, l), Cells(c + 10, l + 4)).Select Selection.Copy Sheets("Sheet1" ).Select Range("B" & l).Select ActiveSheet.Paste Application.CutCopyMode = False n = n + 1 ' élément trouvé : traitement Loop End With MsgBox n & " éléments trouvés" & vbCrLf & msg
End Sub
|