Find-Methode ist wohl falsch für mich
29.01.2005 22:28:01
Edwin
ich habe mit der Find-Methode ein Problem.
Ich will wirklich nur die 2 finden, keine 20 oder 22 usw.
Gibt es eine Methode mit der ich wirklich nur die 2 finde?
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
Gruß
Edwin