Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.Unprotect Password = "ABCD"
Range("B9").Locked = True Range("B9").Interior.ColorIndex = 15 ActiveSheet.Protect Password = "ABCD" You can do multiple cells at once Range("B9:B20,C15,J31:J35").Locked = True Range("B9:B20,C15,J31:J35").Interior.ColorIndex = 15 -- Regards, Tom Ogilvy Consuelo wrote in message ... Hello, I am getting familiar with excel vba and I would like to know how can I programmatically disable/gray out a cell once I have entered data in it? I have tried using lock and deactivate and I could not get it to work. Thanks. Consuelo :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
Deleting and editing something in the style box | Excel Discussion (Misc queries) | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
Disabling protected cell selection | Excel Worksheet Functions | |||
Disabling Cell References | New Users to Excel |