你有没有加return哦
Dim msg As String = e.Message1If msg.Contains("此行已从表中移除并且") Then e.Cancel = True : Return