for..next

Sub fornext循环()
Dim i!, j!
For i = 1 To 100 step 1(1可以默认不写)
j = j + i
Next
MsgBox j
End Sub
时间: 2024-10-13 09:09:41