E
Ed
My understanding of Excel is not the best, so please excuse me if I'm
off-track here. I want to use VBA to set and name a range around a certain
section of a workbook. I can do that. Then I want to go to the row under
the range and set a formula using VBA in each column used by the range. I
can do that, too. The formula will perform a calculation using the
intersection of the named range and that individual column. That's my
sticky point.
I can use VBA to get the column number and set a range to the intersection
of the column and the range, and the set in a formula that references that
intersected range. For certain reasons, it would be better if I didn't do
it that way. So I need to have a formula that says (for example) "AVERAGE
the numbers in the intersection of this column and rngWork1".
Can this be done? I could not find an INTERSECT function. Is there
something I'm overlooking?
Ed
off-track here. I want to use VBA to set and name a range around a certain
section of a workbook. I can do that. Then I want to go to the row under
the range and set a formula using VBA in each column used by the range. I
can do that, too. The formula will perform a calculation using the
intersection of the named range and that individual column. That's my
sticky point.
I can use VBA to get the column number and set a range to the intersection
of the column and the range, and the set in a formula that references that
intersected range. For certain reasons, it would be better if I didn't do
it that way. So I need to have a formula that says (for example) "AVERAGE
the numbers in the intersection of this column and rngWork1".
Can this be done? I could not find an INTERSECT function. Is there
something I'm overlooking?
Ed