I want to stop a user from entering information on a worksheet that is being updated through VBA code. I am using ActiveSheet.Unprotect, updating the cells, then using ActiveSheet.Protect at the end of the sub. The problem is that when the sheet is unprotected, the updated cells are somehow being reverted to "unlocked" so that when the Protect event runs the only cells that are protected are those that were not changed in my code.
How can I stop the cell format from changing and why is this happening?
Thanks for any help!
How can I stop the cell format from changing and why is this happening?
Thanks for any help!