Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a macro which reads an excel range directly into an array, which I then can use in worksheet functions e.g.: DimMyArray As Variant Dim MyResult As Double MyArray = Range("A2:A21").Value MyResult = WorksheetFunction.NPV(0.1, MyArray) This seems to be really effective performance-wise, so my question is: is there a way to add together 2 identically sized arrays created in this way, but without just looping through the elements 1-by-1 (as this may be quite a drag on performance?). Thanks, Richard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding to arrays | Excel Programming | |||
Arrays - declaration, adding values to arrays and calculation | Excel Programming | |||
vba adding arrays | Excel Discussion (Misc queries) | |||
Array function, two dimensions?? and worksheet arrays | Excel Programming | |||
Adding arrays | Excel Programming |