I have a problem with a vb code.
I try to giveout the numbers from 1 to 10 in a text message by using a for next loop:
- Code: Select all
for i=1 to 10
Text(1)=text(1) & i
next
so far so good.
But if I try to give out the numbers except, for example the 3, I try this code:
- Code: Select all
for i=1 to 10
If i=3 then
Next
End If
Text(1)=text(1) & i
next
I get an "unexpected next" error.
Is there any other solution to something like this?
Greetings Juhu