Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI
i posted a query already - please ignore that. In a data entry sheet column b has dates and B3 has specific date i like to lock adjacent cells in columns F,G & H if the date in column B is not date in B3 (criteria) further should not allow to delete anyrow when there is value in cells of F,G & H columns. if there is no value then those can be deleted. sub Worksheet_Change(ByVal Target As Range) if cell(b column) = $B$3 then activesheet.unprotect ="hi" cell.("F"&row).locked = false cell.("G"&row).locked = false cell.("h"&row).locked = false else activesheet.unprotect ="hi" cell.("F"&row).locked = true cell.("G"&row).locked = true cell.("h"&row).locked = true endif activesheet.protect ="hi" end sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
locking cells from specific point to infinity | Excel Programming | |||
trouble locking specific cells | Excel Worksheet Functions | |||
Locking specific cells in a workbook | Excel Discussion (Misc queries) | |||
locking formula in cells in without locking whole sheet | Excel Discussion (Misc queries) | |||
Locking Specific Cells | Excel Programming |