Re: Anyone good at VB?
I don't know the language or the syntax, but if your for loop syntax is correct you're just missing a final loop. The variable i is probably only valid between the lines
For i = ...
...
Next
So at the end you say:
s = s & i & " "
If i Mod 10 = 0 Then
s = s & vbNewLine
End If
But that isn't inside of a for loop and so the value i is meaningless. You probably want to put that inside a loop counting from 0 to 29.
|