For Next ......... but the other way around?

  • Thread starter Thread starter Henro
  • Start date Start date
H

Henro

Hello all!
I created a very nice For.. Next loop:

For N = 2 To 5
Code:
Next

But I would like to execute it the other way :

For N = 5 To 2
[code]
Next

but that doens not seem to work??? How can I make sure the code starts
at 5 and ends  at 2????

Suggestions???

TIA,

Henro
 
THANK YOU!


Dennis schreef:
For N = 5 to 2 Step -1
Code:
Next

:

[QUOTE]
Hello all!
I created a very nice For.. Next loop:

For N = 2 To 5
[code]
Next

But I would like to execute it the other way :

For N = 5 To 2
[code]
Next

but that doens not seem to work??? How can I make sure the code starts
at 5 and ends  at 2????

Suggestions???

TIA,

Henro
[/QUOTE][/QUOTE]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top