VBA Copy/Paste fixed range a number of times
Solved/Closed
srinivas_kala
Posts
4
Registration date
Thursday September 19, 2019
Status
Member
Last seen
October 10, 2019
-
Updated on Sep 24, 2019 at 11:55 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 15, 2019 at 11:41 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 15, 2019 at 11:41 AM
Related:
- Copy and paste range vba
- Why can't i copy and paste on instagram ✓ - Instagram Forum
- Vba case like - Guide
- Discord invisible name copy and paste ✓ - Internet & Social Networks Forum
- Insert a new sheet at the end of the tab names and paste the range names starting in cell a1. autofit columns a:b and name the worksheet as range names. ✓ - Excel Forum
- Number to words in excel formula without vba - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Sep 23, 2019 at 12:07 PM
Sep 23, 2019 at 12:07 PM
Hi Srinivas,
Give the following code a try:
Best regards,
Trowa
Give the following code a try:
Sub RunMe() Dim x, dRow, Counter As Integer Counter = InputBox("How many times would you like to paste?:") dRow = 7 Range("A2:A6").Copy For x = 1 To Counter Range("A" & dRow).PasteSpecial dRow = dRow + 5 Next x Application.CutCopyMode = False End Sub
Best regards,
Trowa
Sep 27, 2019 at 11:51 AM
Thanks for the Help. Works like a champ.
Sep 27, 2019 at 01:01 PM
I need to stop the code after 200 rows(40 times to copy A1:A5). Please help.
Sep 30, 2019 at 11:48 AM
For that a few minor changes are needed:
Best regards,
Trowa
Oct 10, 2019 at 06:27 AM
Sorry for the delayed response. I was on field visit. Thank you very much. this is what I really need. Once again thank you for your time and help.
Oct 15, 2019 at 11:41 AM