How to use an array function in a macro
The formula can be included in a macro as:
ActiveSheet.Range("D1") = "=SUM(IF(A$1:A$500<B1,C1:C500, 0))"
I don't know if this is what you were looking for.
--
Best wishes,
Jim
"Bharath Rajamani" wrote:
Can an array function be executed from a macro, how?
I'd like to construct an array function like
{SUM(IF(A$1:A$500<B1,C1:C500, 0))}
in a macro and call it .. using smthg similar to Application.Worksheetfunction
TIA
|