ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Locking cell (https://www.excelbanter.com/excel-discussion-misc-queries/164426-locking-cell.html)

whatzzup

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

Pete_UK

Locking cell
 
Short answer - No.

Pete

On Nov 1, 7:34 pm, whatzzup
wrote:
Good afternoon, is there a formula or condition formatting available to lock
cells if the font colour is specified?




Jim May

Locking cell
 
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

"whatzzup" wrote:

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



All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com