I have some cells that are filled by some formula created in VBA script. I want to make them not-editable (locked) by user input but let the script fill them with formulas.
I tried by protecting worksheet with a password and then :
Range.locked = True
But this didn't allow the code to edit the cells..
=false
at the start of your code, then=true
as the last step in your code. – Cyril