Is there any way to store the .protection
object in VBA and use it to protect the sheet again with the parameters stored in the object?
I know it is possible to store the object but I can't use it to protect the sheet again.
I need this because different sheets have different protection profiles and I want to use this in a loop.
Set wsp = workbookname.Sheets(sheetname).Protection
and to protect the sheet again, I would like to use something like this:
workbookname.Sheets(sheetname).Protect wsp