4
43fan
I'm running the Forecast() function, which uses ranges in order to process.
I initialize two variables, rng1 and rng2 to type range, then set them equal
to the starting range I want.
I'm running it in a nested loop, based on (a) - how many data sets and (b)
how many points of data within each set. I need to increase the range with
each data set, as well as change the column it's looking at for each data
point.
Say I'm starting with this:
rng1 = "B13:B14"
rng2 = "A13:A14"
Running var1=application.Forecast(0,rng2,rng1) works fine, but of course I
get the same value for all data points/all data sets. I can't figure out
how to get the ranges to resize, using rng1.Resize(rng1.rows + i,1)
gives me a type mismatch error.
Help???!!!
Thanks!
Shawn
I initialize two variables, rng1 and rng2 to type range, then set them equal
to the starting range I want.
I'm running it in a nested loop, based on (a) - how many data sets and (b)
how many points of data within each set. I need to increase the range with
each data set, as well as change the column it's looking at for each data
point.
Say I'm starting with this:
rng1 = "B13:B14"
rng2 = "A13:A14"
Running var1=application.Forecast(0,rng2,rng1) works fine, but of course I
get the same value for all data points/all data sets. I can't figure out
how to get the ranges to resize, using rng1.Resize(rng1.rows + i,1)
gives me a type mismatch error.
Help???!!!
Thanks!
Shawn
14. Resizing I'm sure isn't the right way to change the column, but I

