Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
我想让ABCDE任意一列数值发生变化时,锁定相应的变化的行。
代码如下:
If e.DataCol.name = "A|B|C|D|E" Then
If e.NewValue = True Then
e.DataRow.Locked = True
End If
End If
为什么实现不了。
If "A|B|C|D|E"".IndexOf(e.DataCol.name) > -1 Then
If e.NewValue isnot e.OldValue
e.DataRow.Locked = True
End If
End If
感谢程版帮助,已经可以实现了,不过程版的代码多了个引号。(*^__^*) 嘻嘻……
另外,我的ABCDE列输入的是“是/否”,用自己的代码问题出在哪里了?请指教。