Array copy under another array with macros

kosc95

New Member
Joined
Jan 25, 2019
Messages
2
Hello everyone. I need some help with my project where i want to copy array and past it to another sheet. Array is a daily base of consumption for different materials, so would like to copy it to another sheet that i manually name it for a month its made. The problem is i just don't know macros, and i don't know how to copy that array to another sheet under another array..

array_day1
array_day2
array_day3
.
.
.
that would be in spreadsheet january, same goes for other months..as i said i would name them manually.

Any help would be really appreciated.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
U don't need to copy and paste an array. Just load it from 1 sheet then unload it in another sheet. HTH. Dave
 
Upvote 0
Here's an example...
Code:
Sub test()
Dim Arr() As Variant, Cnt As Integer, Cnt2 As Integer
ReDim Arr(5)
For Cnt = 1 To 5
Arr(Cnt - 1) = Sheets("sheet1").Cells(Cnt, "A")
Next Cnt
For Cnt2 = LBound(Arr) To UBound(Arr)
Sheets("sheet2").Cells(Cnt2 + 1, "A") = Arr(Cnt2)
Next Cnt2
End Sub
Sheet1 A1:A5 loads to array then unloads to Sheet2 A1:A5
Dave
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top