- Katılım
- 12 Şubat 2009
- Mesajlar
- 451
- Excel Vers. ve Dili
- 2010 Türkçe
İyi geceler,
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo ws_exit:
Set rng = Application.Intersect(Target, Me.Range("D3
65000"))
If rng Is Nothing Then Exit Sub
With Target
Select Case UCase(.Value)
Case Is = "TAMAM": .Interior.ColorIndex = 3
Case Is = "ONAYLANDI": .Interior.ColorIndex = 19
Case Is = "DEVAM": .Interior.ColorIndex = 33
Case Is = "KONTROL": .Interior.ColorIndex = 35
Case Else
.Interior.ColorIndex = xlNone
End Select
End With
ws_exit:
End Sub
Kodu ile D3
65000 arasında veri girişi yaptığımda Koşullu biçimlendirme uygulanıyor,bu koda ilave olarak ,B sütununa veri girişi yapıldığında B3:AA65000 arasında kenarlık çizilmesini istiyorum,nasıl ilave yapmam lazım.
Çalıştığım dosya ektedir.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo ws_exit:
Set rng = Application.Intersect(Target, Me.Range("D3
If rng Is Nothing Then Exit Sub
With Target
Select Case UCase(.Value)
Case Is = "TAMAM": .Interior.ColorIndex = 3
Case Is = "ONAYLANDI": .Interior.ColorIndex = 19
Case Is = "DEVAM": .Interior.ColorIndex = 33
Case Is = "KONTROL": .Interior.ColorIndex = 35
Case Else
.Interior.ColorIndex = xlNone
End Select
End With
ws_exit:
End Sub
Kodu ile D3
Çalıştığım dosya ektedir.
