- Katılım
- 5 Eylül 2007
- Mesajlar
- 1,247
- Excel Vers. ve Dili
- ofis 2010
iyi akşamlar;
kod ile bulunulan hücre renkleniyor, acaba hücre değilde bulunalan hücredeki yazının renklenmesi gibi bir işlem olabilir mi?
Kod:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
Static EskiHucre As Range
If Target.Interior.ColorIndex <> xlColorIndexNone Then
EskiHucre.Interior.ColorIndex = xlColorIndexNone
Exit Sub
ElseIf Not EskiHucre Is Nothing Then
EskiHucre.Interior.ColorIndex = xlColorIndexNone
End If
Target.Interior.ColorIndex = 7
Set EskiHucre = Target
End sub
