Cosmos75
Registered User.
- Local time
- Today, 09:03
- Joined
- Apr 22, 2002
- Messages
- 1,280
Is there a way to get a For loop to decrease by 1 and not increase by 1?
Where RCount = 5, I want
For i = RCount to 1
'do something with i
Next i
I don't want
For i = RCount to 1
do something with i
Next i
Is this possible? I've tried it and it doesn't work.
Or will I have to do this (only way I could figure it out)
For i = 1 to RCount
h = RCount - i + 1
'do something with h
Next i
Where RCount = 5, I want
For i = RCount to 1
'do something with i
Next i
I don't want
For i = RCount to 1
do something with i
Next i
Is this possible? I've tried it and it doesn't work.
Or will I have to do this (only way I could figure it out)
For i = 1 to RCount
h = RCount - i + 1
'do something with h
Next i