これを行う方法がわからないので、どんな助けも素晴らしいでしょう。配列を使用して、行ごとに1行ずつExcelワークブックに送ります。これは数多くの計算(プログラムするには多すぎる)を行い、別の配列に格納する13の値を吐き出します。これは可能ですか?Excel VBA - 既存の配列に新しい行を書き込む
Dim aP() as Variant
Dim wbR as Workbook
Dim wsR as Worksheet
Dim i as Long
Set wbR = Workbooks.Open([directory])
Set wsR = wbR.Sheets("Sheet1")
aP = Application.Transpose(Activesheet.Range("A1:Z100"))
For i = 1 to 100
wsR.Range("A1:A26") = Application.Index(aP, [row(1:26)], i)
'this is where I need help. Want to paste range C1:C13 into another array,
'so that I can paste it back into the activesheet. I do not wish to paste it
'straight back to the worksheet, but accumulate all the data into array and
'and then paste the array into the activesheet
Next i
Exit Sub
はい、間違いなく可能性を計算するための新しいデータを貼り付けた後。あなたの現在のコードを投稿すれば、人々が提案してくれるはずです。 –
現在のコードを含めるように質問を編集しました –