Modulel 1 deki makroSub koru()
Application.ScreenUpdating = False
For sayfa = 1 To Sheets.Count
Sheets(sayfa).Protect "1"
Next
Application.ScreenUpdating = True
End Sub
Sub koruac()
Application.ScreenUpdating = False
For sayfa = 1 To Sheets.Count
Sheets(sayfa).Unprotect "1"
Next
Application.ScreenUpdating = True
End Sub
Sayfanın kod kısmındakiPrivate Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = 1 'Turn off previous use Cells.Interior.ColorIndex = 1 'Turn off previous use
If Cells(1, 1) = "." Then Exit Sub
Target.EntireRow.Interior.ColorIndex = 5
Target.EntireColumn.Interior.ColorIndex = 26
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error Resume Next
If Intersect(Target, [d:aj]) Is Nothing Then Exit Sub
If Target.Cells.Value > 99 Then
Target.Cells.Font.Size = 8
Else
Target.Cells.Font.Size = 10
End If
End Sub
Aralarında bir çakışma var.Sayfa korumayı devre dışı bırakınca kodlar çalışıyor.Bunu nasıl düzeltip hem koruma makrosu hemde kodlar çakışmadan çalışsın.Saygılarımla.Teşekkürler.
Application.ScreenUpdating = False
For sayfa = 1 To Sheets.Count
Sheets(sayfa).Protect "1"
Next
Application.ScreenUpdating = True
End Sub
Sub koruac()
Application.ScreenUpdating = False
For sayfa = 1 To Sheets.Count
Sheets(sayfa).Unprotect "1"
Next
Application.ScreenUpdating = True
End Sub
Sayfanın kod kısmındakiPrivate Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = 1 'Turn off previous use Cells.Interior.ColorIndex = 1 'Turn off previous use
If Cells(1, 1) = "." Then Exit Sub
Target.EntireRow.Interior.ColorIndex = 5
Target.EntireColumn.Interior.ColorIndex = 26
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error Resume Next
If Intersect(Target, [d:aj]) Is Nothing Then Exit Sub
If Target.Cells.Value > 99 Then
Target.Cells.Font.Size = 8
Else
Target.Cells.Font.Size = 10
End If
End Sub
Aralarında bir çakışma var.Sayfa korumayı devre dışı bırakınca kodlar çalışıyor.Bunu nasıl düzeltip hem koruma makrosu hemde kodlar çakışmadan çalışsın.Saygılarımla.Teşekkürler.