
Option Explicit
Private Sub Workbook_BeforeClose( _
ByRef Cancel As Boolean)
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
True
End Sub |
Sheets("Foglio1").Select
ActiveSheet.Protect Password:="TuaPassword", DrawingObjects:=True, Contents:=True, Scenarios:=True
|
Private Sub Workbook_Open()
Sheets("Foglio1").Select
ActiveSheet.Protect Password:="aaa", DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub |
