Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the responses, though its still not quite what I'm looking for. I
think what I'm trying to achieve is similar to an array formula as used in a sheet e.g.: ={A1:A3+B1:B3} I stumbled across something that may help utilse this calculation in VBA: ' add two 3-element ranges and store in array Dim a1 As Variant a1 = Evaluate("A1:A3+B1:B3") Range("D1:D3").Value = a1 This getting closer to what I need, but to do this dynamically looping over numerous ranges it seems I would have to generate the correct string argument for the evaluate command, which just seems a bit cumbersome if you ask me? 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 |