Hi !
What is the syntax in a for loop for the counter to move by an specified increment i.e. -2, +2 as opposed to +1 ?
Hi !
What is the syntax in a for loop for the counter to move by an specified increment i.e. -2, +2 as opposed to +1 ?
[vba]
For i = start to end Step increment
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
As in.. something like this ?
For plotprice = ref_price To price + 2
or
For plotprice = price To ref_price - 2
?
No,
[vba]
For plotprice = ref_price To price Step 2
or
For plotprice = price To ref_price Step - 2
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
got it... thanks a bunch...