I have the macro pasted below, and it hits an error on the ClearContents line, saying that the cells you are trying to change are protected. I checked and the worksheet definitely does not have protection on. The range "Master_Paste_Area" is in this same worksheet.
Can anyone help?
Thanks,
MikeG
=================================================
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "Q4" Then
ActiveSheet.Unprotect
Range("Master_Paste_Area").ClearContents
Range("Master_Paste_Area").ClearFormats
End If
ActiveSheet.Protect
End Sub
Can anyone help?
Thanks,
MikeG
=================================================
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "Q4" Then
ActiveSheet.Unprotect
Range("Master_Paste_Area").ClearContents
Range("Master_Paste_Area").ClearFormats
End If
ActiveSheet.Protect
End Sub