Dim I As Integer, N As Integer
Dim Sum As Integer
N = Val(Text1.Text)
For I = 1 To N Step 1
Sum = Sum + I
Next I
Print Sum