Hi,
I am trying to code a dynamic column array (don't know if this is the most accurate description of the problem).
I have stock returns data in column B ("B1:B120") on which I am doing analysis. I have nine sets data which is each two columns apart, the next set is in column E ("E1:E120") and so forth. I would like to put it in a For loop to repeat the calculations on each of the nine columns containing data.
How do you specify the Range for the Array so that for each loop it will read the data in a new column? For example, for the initial calculation it uses Range("B1:B120"), for the next run in the loop it uses Range("E1:E120"), and so forth.
Thanks in advance,
Jan
I am trying to code a dynamic column array (don't know if this is the most accurate description of the problem).
I have stock returns data in column B ("B1:B120") on which I am doing analysis. I have nine sets data which is each two columns apart, the next set is in column E ("E1:E120") and so forth. I would like to put it in a For loop to repeat the calculations on each of the nine columns containing data.
How do you specify the Range for the Array so that for each loop it will read the data in a new column? For example, for the initial calculation it uses Range("B1:B120"), for the next run in the loop it uses Range("E1:E120"), and so forth.
Thanks in advance,
Jan