View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Change default for protected sheets

I just added a couple of buttons to a Toolbar and assigned these macros.

Sub SHEETPROTECT()
With ActiveSheet
.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
.EnableSelection = xlUnlockedCells
End With
End Sub

Sub SHEETUNPROTECT()
ActiveSheet.Unprotect Password:="justme"
End Sub


Gord Dibben MS Excel MVP

On Thu, 10 Jan 2008 09:26:07 -0800, carrera
wrote:

The default is set at being able to access both locked and unlocked cells

How can I change this to allow access to only unlocked cells, without having
to unclick that option each time?

thanks