说对了一半 0 (Default) Accept the data value 1 Reject the data value and don't allow focus to change 2 Reject the data value but allow the focus to change 没有3的
应该是返回 1
if dwo.name = 'pj' then if data < 1 or data > 10 then messagebox('提示','不是有效值') return 1 end if end if