Hi Hahobe,
leaving sheets protected or unprotected after clearing is not relevant, user changes that by himself. I should just unprotect them If they are protected, so that cells are really cleared on new sheets, otherwise they are not.
Your code works as mine with difference of protecting them...
Problem I want to solve is that when code is generated, you can see for first three new sheets that special cells don't get clear but after that every new sheet is cleared. In the end, when I check sheets, they are all cleared, so both codes work.
I'm just assuming that something is wrong with code...
Do you have Events behind the Sheets/Workbook that lock the cells?
If you meant this - I have code for toggle button to lock/unlock cells behind Sheet 1. This sheet is then being copied 12 times, so that code is then under all sheets.
Code is :
Bookmarks