John
Put the code below in the Thisworkbook not in a normal module in the VBA
editor.
If you want I can email you the file
Thanks
Paul
Private Sub Workbook_BeforeClose(Cancel As Boolean)
sh = Worksheets.Count
For n = 1 To sh
Sheets(n).Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Next n
End Sub
"Neo1" wrote:
I dont understand, can you explain it to me step to step please
Thanks a lot
From John
--
Neo1
------------------------------------------------------------------------
Neo1's Profile: http://www.excelforum.com/member.php...o&userid=30329
View this thread: http://www.excelforum.com/showthread...hreadid=531466