View Single Post
  #2  
Old 11-20-2007, 09:47 AM
jjshabado jjshabado is offline
Senior Member
 
Join Date: Jul 2006
Posts: 1,879
Default 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.
Reply With Quote