Another Excel Question

Author
Discussion

nikaiyo2

Original Poster:

4,969 posts

201 months

Wednesday 15th November 2023
quotequote all
I have googled but get nothing.

I have a spreadsheet with protected cells, mainly to stop users from messing the formulas up, nothing more. Is it possible to allow "save as" without copying the password protection over these cells?

Bungleaio

6,378 posts

208 months

Wednesday 15th November 2023
quotequote all
If it's protected unless you unprotect it then you can't remove that protection by just using a save as.

maffski

1,878 posts

165 months

Thursday 16th November 2023
quotequote all
If you're comfortable with VBA you could probably do something that ran on the save event and removed the protection.

Workbook.BeforeSave
Workbook.Unprotect

Or alternatively, that ran on open and removed the protection if it wasn't the correct filename.

Workbook.Open
Workbook.FullName

In both cases all users would need to configure the Excel security settings to run marcos in the file.