What do you mean by that?
I've also doing validation
and when I protect the sheet,
no one can altered the validation
contents unless you did not
protect the cell(although) you
have already protect the sheet
Check it again
The cell contents can be changed to another option within the drop down box, but I want to lock the cell so it can't be changed at all.
Go to the cell that have list drop down
validation...Ctrl+1 and you'll go to format
click the tab properties and
check the locked box.close it
and lock your worksheet..HTH
Tried that, but it doesn't work, the cells can still be altered.
That pretty weird..I wonder why...
Feel free to email me...maybe I
can looked whats going wrong
Tried that, but it doesn't work, the cells can still be altered.
If the problem is only with cells with list
validation, then you can solve the problem
by setting InCellDropdown to false.
The following macros will do the trick.
You'll need to define a range (ValidatedRanges)
that has all of the cells with list validation.
Sub ProtectSheetForReal()
Dim ValidRange As Range
Dim cel As Range
Set ValidRange = Range("ValidatedRanges")
For Each cel In ValidRange
cel.Validation.InCellDropdown = False
Next
ActiveSheet.Protect
End Sub
Sub UnProtectSheetForReal()
Dim ValidRange As Range
Dim cel As Range
ActiveSheet.Unprotect
Set ValidRange = Range("ValidatedRanges")
For Each cel In ValidRange
cel.Validation.InCellDropdown = True
Next
End Sub
Hope this helps.