以下是我的代码,
Private Sub CommandButton1_Click()
Dim Num, Sum As Integer
Sum = 0
Num = 2
Do While Num <= 20
Sum = Sum + Num
Print Sum
Num = Num + 2
Loop
Print "The sum is bla bla...."; Sum
End Sub
我在“打印总和”行收到错误“对象不支持此属性或方法”。我错过了什么?
请纠正我!!任何帮助表示赞赏。