Me again.
A slightly more challenging one this time.
I have a worksheet with multiple formula some on hidden rows, all nicely laid out and formatted to make an easy to use standard report. I have the sheet protected from accidental editing by well meaning colleagues. All good!
I want to insert a clear all button so that a user can get a clear form easily (there is no need to keep a filled copy).
I have entered VBA code to select all unlocked cells and then clear contents.
My issue comes when I protect the sheet I get an error message saying Can't do this to a protected sheet.
Why if all the cells selected are unlocked??
What am I missing??
Regards
Pittsy
A slightly more challenging one this time.
I have a worksheet with multiple formula some on hidden rows, all nicely laid out and formatted to make an easy to use standard report. I have the sheet protected from accidental editing by well meaning colleagues. All good!
I want to insert a clear all button so that a user can get a clear form easily (there is no need to keep a filled copy).
I have entered VBA code to select all unlocked cells and then clear contents.
My issue comes when I protect the sheet I get an error message saying Can't do this to a protected sheet.
Why if all the cells selected are unlocked??
What am I missing??
Regards
Pittsy
Last edited: