Lock Cells after Data Entry
问题 I have a spreadsheet that is edited by multiple users. To prevent tampering with previous data the cells are locked once data has been entered and the file saved. I have a few small bugs in the code though: Even if the user has saved manually and then exits the application they are still prompted to save again. The cells should be locked after a save when the application is running and not just when it is exited. Previously I had this code in the before_save event but the cells were being