Hallo,
habe folgende Funktion geschrieben:
Function entrytest(bereich As Range, suchText As String)
Dim foundCell As Range
Dim text As String
Set foundCell = bereich.Find(what:=suchText, LookIn:=xlValues)
firstAddress = foundCell.Address
Do
text = text + foundCell.Address
Set foundCell = bereich.FindNext(foundCell)
Loop While Not foundCell Is Nothing and foundcell.address firstAddress
End
Das Problem: Die FindNext-Methode liefert mir immer Nothing zurück, obwohl der Suchstring mehrmals vorkommt. Find arbeitet aber korrekt.
Jemand eine Idee an was das liegen kann?