Hi,
I have written the following:
This goes on for many more lines. Can someone pls show me how this can be converted to a for loop instead?Please Login or Register to view this content.
Thanks for any help.
Hi,
I have written the following:
This goes on for many more lines. Can someone pls show me how this can be converted to a for loop instead?Please Login or Register to view this content.
Thanks for any help.
Perhaps.
Please Login or Register to view this content.
If posting code please use code tags, see here.
Norie,
Thanks, that worked perfectly. I have some questions to ask you about your code.
1. what does the "\" mean in the line
2. what does this segmentPlease Login or Register to view this content.
do?Please Login or Register to view this content.
Thanks.
1. <dividend>\<divisor> is the Integer Division operator, it returns the no of times the divisor can divide the dividend ignoring the remainder.
Make sense?
How about an example?
5\4 returns 1
9\4 returns 2
13\4 returns 3
and so on.
We use it to get the no of columns we need to add to the range based on lastcolumn.
2 This will rerturn Columns(6), Columns(10), Columns(14) etc based on what I is.
So if I was 2 we first add Columns(6) to the final range, then we add Columns(10).Please Login or Register to view this content.
Any use?
Thanks for the explanation! Got it now =)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks