How to add arrays?

前端 未结 2 1195
我在风中等你
我在风中等你 2021-01-13 20:36

I have the following problem in Excel while calculating through a loop: I need a variable (Destination Variable) that sequentially stores the results produced after each loo

2条回答
  •  悲&欢浪女
    2021-01-13 20:50

    Quite easy. I did this by recording as macro and tidying.

    Sub Macro1()            
        Range("origin").Copy
        Range("destination").PasteSpecial Paste:=xlPasteAll, Operation:=xlAdd, _
            SkipBlanks:=False, Transpose:=False
        Application.CutCopyMode = False
    End Sub
    

提交回复
热议问题