- Katılım
- 9 Ekim 2012
- Mesajlar
- 92
- Excel Vers. ve Dili
- 2007 Türkçe
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
If Not Intersect(Target, [A1:M20]) Is Nothing Then
[A1:M20].FormatConditions.Delete
With Range(Cells(Target.Row, 1), Cells(Target.Row, 13))
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Interior.ColorIndex = 6
End With
Else
[A1:M20].FormatConditions.Delete
End If
End Sub
Arkadaşlar ben bu kodu kullandım çok da güzel oldu. Bu koda bir de seçili hücrenin seçili satırdan farklı bir renk olmasını sağlayacak bir ekleme yapabilir miyiz acaba?
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
If Not Intersect(Target, [A1:M20]) Is Nothing Then
[A1:M20].FormatConditions.Delete
With Range(Cells(Target.Row, 1), Cells(Target.Row, 13))
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Interior.ColorIndex = 6
End With
Else
[A1:M20].FormatConditions.Delete
End If
End Sub
Arkadaşlar ben bu kodu kullandım çok da güzel oldu. Bu koda bir de seçili hücrenin seçili satırdan farklı bir renk olmasını sağlayacak bir ekleme yapabilir miyiz acaba?
