In VBA Excel if I protect sheets with UserInterFaceOnly:=True option after I close and open the file again the UserInterFaceOnly mode is not activ
UserInterFaceOnly:=True
UserInterFaceOnly
I'm not sure what the cause of that issue is, but you can circumvent it by adding protection code to the Workbook_Open() event, resetting every sheet protection to have UserInterfaceOnly:=True in each
Workbook_Open()
UserInterfaceOnly:=True