Sheet protection: UserInterFaceOnly gone

后端 未结 2 1638
臣服心动
臣服心动 2020-11-30 14:28

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

2条回答
  •  一个人的身影
    2020-11-30 14:31

    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

提交回复
热议问题