Hallo,
Ik zou deze macro met een knop rijdelijk willen uitschakelen, is dit mogelijk.
Groet PPMS
Ik zou deze macro met een knop rijdelijk willen uitschakelen, is dit mogelijk.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.Unprotect Password:="sc3338"
Dim cl As Range, x As Integer, y As Integer
For Each cl In [B12:Y91]
If cl.Interior.ColorIndex = 4 Then
cl.Interior.ColorIndex = -4142
End If
Next cl
y = ActiveCell.Row
If y > 91 Then Exit Sub
For x = 1 To 25
If Cells(y, x).Interior.ColorIndex = -4142 Then
Cells(y, x).Interior.ColorIndex = 4
End If
Next x
ActiveSheet.Protect Password:="sc3338"
End Sub
Groet PPMS