Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In the Worksheet's code area put in: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If [a1].Value = Empty Then Cells.Locked = True [a1].Locked = False ActiveSheet.Protect password:="whatever" Else ActiveSheet.Unprotect password:="whatever" End If End Sub Change the password to something meaningful, change a1's to whichever cell you want the initial data in, uncheck the Locked property of the cell, protect the worksheet and hey presto! -- colofnature ------------------------------------------------------------------------ colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356 View this thread: http://www.excelforum.com/showthread...hreadid=544785 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Leaving a total sum cell blank until other cells are filled | Excel Worksheet Functions | |||
To lock a cell/cells after entering the value | Excel Discussion (Misc queries) | |||
Fill cells below until next cell is filled | Excel Worksheet Functions | |||
Filled cells dont appear as filled | Excel Discussion (Misc queries) | |||
Macro Request: Fill in empty cells with previous Filled cell in column | Excel Worksheet Functions |