VBA,语句Selection.Locked = False在运行时报错:“不能设置类Range的Locked属性”,请问如何解决?谢谢
部分代码如下:L3_Update.ActivateL3_Update.Cells.SelectApplication.CutCopyMode=FalseSelection...
部分代码如下:
L3_Update.Activate
L3_Update.Cells.Select
Application.CutCopyMode = False
Selection.Locked = False
Selection.FormulaHidden = False
L3_Update.Columns("A:B").Select
Selection.Locked = True
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True 展开
L3_Update.Activate
L3_Update.Cells.Select
Application.CutCopyMode = False
Selection.Locked = False
Selection.FormulaHidden = False
L3_Update.Columns("A:B").Select
Selection.Locked = True
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询