Sub testWhileWend()
Dim a As Integer
Dim sum As Integer
a = 1
sum = 0
While a <= 100
sum = sum + a
a = a + 1
Wend
MsgBox "1 + 2 + 3 + …… + 100 = " & sum, vbOKOnly, "calculate the sum"
End Sub
最后
以上就是怕孤单毛衣最近收集整理的关于vba学习笔记 while wend 的使用的全部内容,更多相关vba学习笔记内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复