I used Conditional Formating on a cell. Set the formula to change format based on value of cell.
Here is a procedure with the attentions I want.
Sub FormatUnprotected()
For Each Item In ActiveCell
If Item.Locked = False And IsEmpty(Item.Value) = True Then
Item.Interior.ColorIndex = 20
Else
Item.Interior.ColorIndex = 0
End If
Next
End Sub
I placed the call on Worksheet Change and Worksheet Selection Change; however, when the sheet is protected. If I delete the contents, using delete button, the change event is activated.
When I enter the value and tab through the next unlocked cell, it does not change format until I go into the cell again (Selection Change) or hit enter. How does the Conditional Format work when I enter those conditions? It does the change automatically. I may have around 100 cells to CF. Is it possible to mimic that??
Any guidance who be great!!
Thanks!!![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
Here is a procedure with the attentions I want.
Sub FormatUnprotected()
For Each Item In ActiveCell
If Item.Locked = False And IsEmpty(Item.Value) = True Then
Item.Interior.ColorIndex = 20
Else
Item.Interior.ColorIndex = 0
End If
Next
End Sub
I placed the call on Worksheet Change and Worksheet Selection Change; however, when the sheet is protected. If I delete the contents, using delete button, the change event is activated.
When I enter the value and tab through the next unlocked cell, it does not change format until I go into the cell again (Selection Change) or hit enter. How does the Conditional Format work when I enter those conditions? It does the change automatically. I may have around 100 cells to CF. Is it possible to mimic that??
Any guidance who be great!!
Thanks!!
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)