Użytkownik "Umiar" <
um...@poczta.inna.pl> napisał w wiadomości
news:47dbaaec$1...@news.home.net.pl...
Przykład z pomocy VBA
With Worksheets(1).Range("a1:a500") 'Obszar w któym szukasz, możesz sobie
zmienic np jedna cała kolumna Range("A:A")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address ' to jest adres znalezionej komórki
Range(c.Address).Select
Do
c.Interior.Pattern = xlPatternGray50
Set c = .FindNext(c) ActiveCell.Offset(0,2).value =
"twoja wartosc" '(w 2 kolumnie od aktywnej komórki wpisz)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End WithPozdrawiam