Locking cell

W

whatzzup

Good afternoon, is there a formula or condition formatting available to lock
cells if the font colour is specified?
 
J

Jim May

Sub LockYellows()
Set MyRange = Range("B10:D20")
For Each c In MyRange
If c.Interior.ColorIndex = 6 Then
c.Locked = True
End If
Next c
Set MyRange = Nothing
End Sub
 
Top