ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   change increasment in a for loop (https://www.excelbanter.com/excel-discussion-misc-queries/113081-change-increasment-loop.html)

Jared

change increasment in a for loop
 
i have a "for" loop while creating a macro
how do i change increasment by 3 and not 1

example:
for i = 3 to 27
If isempty(j,i) Then next i

I need i to increase by 3 not 1

Thanks

Dave Peterson

change increasment in a for loop
 
for i = 3 to 27 step 3

Jared wrote:

i have a "for" loop while creating a macro
how do i change increasment by 3 and not 1

example:
for i = 3 to 27
If isempty(j,i) Then next i

I need i to increase by 3 not 1

Thanks


--

Dave Peterson

Trevor Shuttleworth

change increasment in a for loop
 
for i = 3 to 27 step 3

Regards

Trevor


"Jared" wrote in message
...
i have a "for" loop while creating a macro
how do i change increasment by 3 and not 1

example:
for i = 3 to 27
If isempty(j,i) Then next i

I need i to increase by 3 not 1

Thanks




Jared

change increasment in a for loop
 
Thanks,
Jared

"Trevor Shuttleworth" wrote:

for i = 3 to 27 step 3

Regards

Trevor


"Jared" wrote in message
...
i have a "for" loop while creating a macro
how do i change increasment by 3 and not 1

example:
for i = 3 to 27
If isempty(j,i) Then next i

I need i to increase by 3 not 1

Thanks






All times are GMT +1. The time now is 02:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com