Sub ttst()
Dim x
x = Application.InputBox("第" & Row & "行" & "勝場:" & 勝場數 & "場" & vbCrLf & "是否勝利並加鍵入的數量上去", "確認窗口", 1)
If x & "" = "False" Then
MsgBox "已取消操作" '按取消時(注意:輸入0按確定, x也會被定為0=False, 所以要加"", 變成文字與0做區別)
ElseIf x = "" Then
MsgBox "未輸入內容"
ElseIf IsNumeric(x) = False Then
MsgBox "輸入的非數值"
Else
Range("by" & Row) = 勝場數 + x
End If
End Sub