techstyle20
New Member
- Joined
- May 14, 2012
- Messages
- 40
Hi,
I'm new and just starting to learn VBA.
I need help copying and repeating data underneath itself.
I need to copy a block of data and repeat this data 13 times underneath itself. As the length of the data will change each month I cant get it to paste into specific cells as I want to to repeat after the last row with data in it. I have come up with the following:
Range("A4:D4").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("A" & Cells.Rows.Count).End(xlUp).Select
This however only selects the last cell with data in it, I need it to start on the next free line. I also want it to repeat 13 times. I havnt got round to loops yet!
Thanks in advance!
I'm new and just starting to learn VBA.
I need help copying and repeating data underneath itself.
I need to copy a block of data and repeat this data 13 times underneath itself. As the length of the data will change each month I cant get it to paste into specific cells as I want to to repeat after the last row with data in it. I have come up with the following:
Range("A4:D4").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("A" & Cells.Rows.Count).End(xlUp).Select
This however only selects the last cell with data in it, I need it to start on the next free line. I also want it to repeat 13 times. I havnt got round to loops yet!
Thanks in advance!