Suche mit FindNext
22.01.2004 15:45:02
Timo
Sub Test()
Dim c As Variant
With Worksheets(1).Range("a1:a500")
Set c = .Find(2, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
End Sub
Hallo Leut,
mein Excel meckert ueber die Zeile
Loop While Not c Is Nothing And c.Address <> firstAddress
Warum?
Vielen Dank fuer alle Antworten!
Timo