表AfterEdit事件代码:
If e.col.name = "第一列" If e.Row("第一列") = Nothing MessageBox.show("对不起,第一列内容禁止为空!",) e.Cancel = True End IfEnd If