Private Sub Worksheet_Activate()
ThisWorkbook.Protect "yourpassword"
End Sub
Private Sub Worksheet_Deactivate()
ThisWorkbook.Unprotect "yourpassword"
End Sub
On 2002-08-17 02:53, muffins wrote:
hi everyone,
may i know how do i prevent a certain worksheet from being deleted? how to do it programatically? (i do not want to protect my workbook)
many thanks in advance.