Private Sub a_Change()call calend subsub cal()if a.Text="" or a.Text = 0 then exit subif b.Text="" or b.Text = 0 then exit subif c.Text="" or c.Text = 0 then exit subd.Text = Val(a.Text) * Val(b.Text) / Val(c.Text)end sub另外textbox的IMEmode 要改成8如果想全靠鍵盤操作可以把前三行取消改用Private Sub a_KeyDown(ByVal KeyCode As MSFors.ReturnInteger, ByVal Shift As Integer)If KeyCode = 13 Or KeyCode = 9 ThenApplication.EnableEvents = FalseCall calKeyCode = 0b.SetFocusApplication.EnableEvents = TrueEnd IfEnd Sub\\ 刪掉 不小心按到