habe das Makro hier aus dem Forum.
Kann mir bitte jemand sagen was ich umstellenmuß um nach nach einem Teil eines Wortes zu suchen ?
Sub alles_Durchsuchen()
'Sucht in der gesamten Mappe nach einem Begriff und kopiert die
'gefundene Zeile in eine zu definfierende Ergebnistabelle
Dim wks As Worksheet
Dim rng As Range
Dim sAddress As String
'Suchbegriff
Dim sFind As Variant
Dim cr As Long, tarWks As String
'Name_der_Zieltabelle
'Bitte Anpassen
tarWks = "Suchergebnis"
With Worksheets(tarWks)
If .Cells(.Rows.Count, 1) "" Then MsgBox "Zieltabelle voll": Exit Sub
cr = .Cells(.Rows.Count, 1).End(xlUp).Row
'If cr = 1 And .Cells(1, 1) = "" Then cr = 0
If cr tarWks Then
Set rng = wks.Cells.Find(What:=sFind, lookat:=xlPart, LookIn:=xlFormulas)
If Not rng Is Nothing Then
sAddress = rng.Address
Do
Application.GoTo rng, True
'Für die Automation kann die "If"-Anweisung auskommentiert werden
' If MsgBox("Suchbegriff: " & sFind & ",gefunden in " & wks.Name _
' & ", " & rng.Address, vbYesNo + vbQuestion, "Weitersuchen ?") _
' = vbNo Then Exit Sub
cr = cr + 1
wks.Rows(rng.Row).Copy Destination:=.Rows(cr)
Set rng = wks.Cells.FindNext(After:=ActiveCell)
If rng.Address = sAddress Then Exit Do
Loop
End If
End If
Next wks
MsgBox Prompt:="Keine neue Fundstelle!"
End With
Sheets("Suchergebnis").Select
Range("A2").Select
End Sub
Mit freundlichen Grüßen
Manfred