Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code in the Worksheet_Change event of a worksheet.
Case "$E$14" 'Approval status If Target.Value < "" Then If Target.Value = "Not Submitted" Then Target.Font.Color = 255 Else Target.Font.Color = 0 End If End If The code works fine, until I turn on the Protect Sheet feature. Then it generates an error code 1004 (Application-defined or object-defined error). Does anyone know why protecting the worksheet would cause the code to fail? Ken |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing macro security causes VBA code to fail | Excel Programming | |||
Range("Reset Sheet!F13").Select Makes VBA Code Fail | Excel Programming | |||
Placement of variables in called sub causes code to fail | Excel Programming | |||
Links to 2nd closed worksheet fail when using offset function ?? | Excel Worksheet Functions | |||
Protecting buttons with VB code rather than protecting sheets/books? | Excel Programming |