Sum = Application.Sum(Range(Cells(12, 3), Cells(12, 82)))
If Sum = 0 Then
Enter = "Enter a value for E"
Exit Sub
End If
所以我试图获得"单击按钮时输入E的值以弹出。到目前为止,当陈述是真的,没有任何反应。
答案 0 :(得分:1)
您可以在MsgBox Enter
行后使用Enter = "Enter a value for E"
:
Sum = Application.Sum(Range(Cells(12, 3), Cells(12, 82)))
If Sum = 0 Then
Enter = "Enter a value for E"
MsgBox Enter
Exit Sub
End If