Not sure what the FormLock and FormUnlock do but I made them comments and the sheet remains protected during the Lock and Unlock.