VBA code for copy & paste items for multiple times [Solved]

andrewhu91 3 Posts Thursday June 28, 2018Registration date July 3, 2018 Last seen - Jun 28, 2018 at 03:12 AM - Latest reply: andrewhu91 3 Posts Thursday June 28, 2018Registration date July 3, 2018 Last seen
- Jul 3, 2018 at 12:11 PM
Hi, I'm a very beginner in VBA and would need this problem solved urgently. I'd like to copy each line item and paste them in a new sheet 9 times. I tried several codes but it just messed up. The first figure is the raw data and the second figure is intended output. I'd need to copy and paste all line items 9 times. If you could show me some codes, I'd like to try them out.

Thank you so much, and I really look forward to hearing from you soon.



See more 

Your reply

4 replies

Best answer
TrowaD 2387 Posts Sunday September 12, 2010Registration date July 9, 2018 Last seen - Jun 28, 2018 at 11:01 AM
1
Thank you
Hi Andrew,

Why not copy C2:F479. Then on the other sheet hit:
- Ctrl+v
- End
- Arrow down
- Arrow down
repeat 8 more times.

Then select column C:F and sort on column F.

Best regards,
Trowa

Thank you, TrowaD 1

Something to say? Add comment

CCM has helped 1773 users this month

andrewhu91 3 Posts Thursday June 28, 2018Registration date July 3, 2018 Last seen - Jun 28, 2018 at 11:13 PM
Thank you Trowa.. That helps a lot! easier also. would you also mind letting me know the VBA code if not too much work?
TrowaD 2387 Posts Sunday September 12, 2010Registration date July 9, 2018 Last seen - Jul 3, 2018 at 12:06 PM
Hi Andrew,

Thanks for the feedback. I haven't had the time for the VBA code as I prioritise new query's.
Do take a look at the link below as it does pretty much the same thing; repeating a number of rows:
https://ccm.net/forum/affich-1052135-copying-time-fields-down#p1052306

Let me know if you are still waiting for a code tailored for your situation.

Best regards,
Trowa
andrewhu91 3 Posts Thursday June 28, 2018Registration date July 3, 2018 Last seen - Jul 3, 2018 at 12:11 PM
It worked. Thanks so much for help.
Respond to TrowaD