Hello Folks
Ive had help to get as far as I have from people on this forum, thank you. but I'm after a little more help please.
the code does what I need it to I just need a little tweak.
it allows me to copy but when I select the next cell but it won't let me paste because it locks the cell
how do I allow it to allow a paste. ( if = pate???)
could you please help me modify the code
thank you Jason
Ive had help to get as far as I have from people on this forum, thank you. but I'm after a little more help please.
the code does what I need it to I just need a little tweak.
it allows me to copy but when I select the next cell but it won't let me paste because it locks the cell
how do I allow it to allow a paste. ( if = pate???)
could you please help me modify the code
thank you Jason
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.Unprotect "gary"
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
''Cells.Interior.ColorIndex = 0
Range("A12:MN42").Interior.ColorIndex = 0
If Not Intersect(Target, Range("A12:MN42")) Is Nothing Then
Target.EntireRow.Interior.ColorIndex = 6
End If
Application.ScreenUpdating = True
ActiveSheet.Protect "gary"
End Sub
Last edited: