Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
If Not Intersect(Target, [C4:O65536,S3:AE65536]) Is Nothing Then
On Error Resume Next
ActiveSheet.Shapes("SIRALAMA").Top = Cells(1, Target.Column).Top
ActiveSheet.Shapes("SIRALAMA").Left = Cells(1, Target.Column).Left
ActiveSheet.Shapes("TABLO").Top = Cells(1, Target.Column).Offset(0, 2).Top
ActiveSheet.Shapes("TABLO").Left = Cells(1, Target.Column).Offset(0, 2).Left
ActiveSheet.Shapes("SİLME").Top = Cells(1, Target.Column).Offset(0, 4).Top
ActiveSheet.Shapes("SİLME").Left = Cells(1, Target.Column).Offset(0, 4).Left
End If
If Intersect(Target, [b2
65536,r2:af65536]) Is Nothing Then
Cells.FormatConditions.Delete
Exit Sub
End If
Dim Satır As Range, Sütun As Range
If Target.Column > 1 And Target.Column < 17 Then
Set Satır = Range(Cells(Target.Row, 2), Cells(Target.Row, "p"))
Set Sütun = Range(Cells(2, Target.Column), Cells(65536, Target.Column))
Renk = 7
End If
If Target.Column > 17 And Target.Column < 33 Then
Set Satır = Range(Cells(Target.Row, 19), Cells(Target.Row, "af"))
Set Sütun = Range(Cells(2, Target.Column), Cells(65536, Target.Column))
Renk = 8
End If
Cells.FormatConditions.Delete
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
With Satır
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = Renk
End With
With Sütun
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = Renk
End With
With ActiveCell
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = 6
End With
End Sub
yani bu koddaki yamak istediğim özellik olacak aancak bazı yerede kaşullu biçimlendirme yapmak istiyorum
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
If Not Intersect(Target, [C4:O65536,S3:AE65536]) Is Nothing Then
On Error Resume Next
ActiveSheet.Shapes("SIRALAMA").Top = Cells(1, Target.Column).Top
ActiveSheet.Shapes("SIRALAMA").Left = Cells(1, Target.Column).Left
ActiveSheet.Shapes("TABLO").Top = Cells(1, Target.Column).Offset(0, 2).Top
ActiveSheet.Shapes("TABLO").Left = Cells(1, Target.Column).Offset(0, 2).Left
ActiveSheet.Shapes("SİLME").Top = Cells(1, Target.Column).Offset(0, 4).Top
ActiveSheet.Shapes("SİLME").Left = Cells(1, Target.Column).Offset(0, 4).Left
End If
If Intersect(Target, [b2
Cells.FormatConditions.Delete
Exit Sub
End If
Dim Satır As Range, Sütun As Range
If Target.Column > 1 And Target.Column < 17 Then
Set Satır = Range(Cells(Target.Row, 2), Cells(Target.Row, "p"))
Set Sütun = Range(Cells(2, Target.Column), Cells(65536, Target.Column))
Renk = 7
End If
If Target.Column > 17 And Target.Column < 33 Then
Set Satır = Range(Cells(Target.Row, 19), Cells(Target.Row, "af"))
Set Sütun = Range(Cells(2, Target.Column), Cells(65536, Target.Column))
Renk = 8
End If
Cells.FormatConditions.Delete
If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
With Satır
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = Renk
End With
With Sütun
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = Renk
End With
With ActiveCell
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:=1
.FormatConditions(1).Font.Bold = True
.FormatConditions(1).Interior.ColorIndex = 6
End With
End Sub
yani bu koddaki yamak istediğim özellik olacak aancak bazı yerede kaşullu biçimlendirme yapmak istiyorum
