Enter事件
If Tables("表A").current("第一列") = True Then e.sender.ReadOnly = BooleanEnum.True '不允许编辑Else e.sender.ReadOnly = BooleanEnum.False '允许编辑End If