DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Const iInternational As Integer = Not (0)
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Row > 27 Then Exit Sub
If Target.Column > 7 Then Exit Sub
Sheets("Sayfa1").Unprotect Password:="1"
Dim iColor As Integer
On Error Resume Next
iColor = Target.Interior.ColorIndex
If iColor < 0 Then
iColor = 20
Else
iColor = iColor + 1
End If
If iColor = Target.Font.ColorIndex Then iColor = iColor + 1
Cells.FormatConditions.Delete
With Cells(Target.Row, Target.Column)
.FormatConditions.Add Type:=2, Formula1:=iInternational
.FormatConditions(1).Interior.ColorIndex = iColor
End With
With Range(Target.Offset(1 - Target.Row, 0).Address & ":" & Target.Offset(-1, 0).Address)
.FormatConditions.Add Type:=2, Formula1:=iInternational
End With
Sheets("Sayfa1").Protect Password:="1"
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Private Sub WorkSheet_SelectionChange(ByVal Target As Range)
iColor = Target.Interior.ColorIndex
iColor = Target.Borders.ColorIndex
With Cells(Target.Row, Target.Column)
.FormatConditions.Add Type:=2, Formula1:=iInternational
.FormatConditions(1).Interior.ColorIndex = iColor
End With
With Cells(Target.Row, Target.Column)
.FormatConditions.Add Type:=2, Formula1:=iInternational
.FormatConditions(1).Borders.ColorIndex = iColor
End With
If Target.Row > 27 Then Exit Sub
If Target.Column > 7 Then Exit Sub
Sheets("Sayfa1").Unprotect Password:="1"
If Target.Row > 27 Then Exit Sub
If Target.Column > 7 Then Exit Sub
Const iInternational As Integer = Not (0)
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Row > 27 Then Exit Sub
If Target.Column > 7 Then Exit Sub
Sheets("Sayfa1").Unprotect Password:="1"
Sheets("Sayfa2").Unprotect Password:="2"
Sheets("Sayfa3").Unprotect Password:="3"
Dim iColor As Integer
On Error Resume Next
iColor = Target.Interior.ColorIndex
If iColor < 0 Then
iColor = 20
Else
iColor = iColor + 1
End If
If iColor = Target.Font.ColorIndex Then iColor = iColor + 1
Cells.FormatConditions.Delete
With Cells(Target.Row, Target.Column)
.FormatConditions.Add Type:=2, Formula1:=iInternational
.FormatConditions(1).Interior.ColorIndex = iColor
End With
With Range(Target.Offset(1 - Target.Row, 0).Address & ":" & Target.Offset(-1, 0).Address)
.FormatConditions.Add Type:=2, Formula1:=iInternational
End With
Sheets("Sayfa1").Protect Password:="1"
Sheets("Sayfa2").Protect Password:="2"
Sheets("Sayfa3").Protect Password:="3"
Application.ScreenUpdating = True
End Sub