We are trying to Debug/verify code as part of our validation process
simple spreadsheet
code to auto lock on open and auto lock and save on close
Option Explicit
Private Sub Workbook_Open()
Dim i As Long
ThisWorkbook.Unprotect SheetPasswrd
Application.WindowState = xlMaximized...