Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 20, 3:10 am, Ken Johnson wrote:
Maybe something like this... Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Sheet1.Unprotect "tiptoe" Dim rgCell As Range For Each rgCell In Range("B2:C11") If rgCell.Value = "" Then rgCell.Locked = False Else: rgCell.Locked = True End If Next Sheet1.Protect "tiptoe" End Sub When the workbook is saved each cell in the range of cells where data is to be entered by all the different other users (Sheet1!B2:C11 in the sample code) is locked if not blank and unlocked if blank. The sheet is protected with the password "tiptoe" The code has to be pasted into the ThisWorkbook code module. Ken Johnson Ken, Thanks, looking good. Regards, tiptoe |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Protection Best Practice: AKA: Real Sheet Protection | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing | Excel Discussion (Misc queries) | |||
Cell Entry That Locks Selected Cells From Any Data Entry. | Excel Worksheet Functions | |||
Auto Date with Manual Entry Protection | Excel Worksheet Functions |