Trying to insert multiple rows between rows in excel with copied data.
Closed
ElderVisco
Posts
1
Registration date
Sunday June 9, 2019
Status
Member
Last seen
June 9, 2019
-
Updated on Jun 9, 2019 at 01:37 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 13, 2019 at 11:44 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 13, 2019 at 11:44 AM
Related:
- Excel vba copy and insert multiple rows
- Number to words in excel formula without vba - Guide
- Vba case like - Guide
- Insert gif in excel - Guide
- Insert checkmark in word - Guide
- How to open vba in excel mac - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jun 13, 2019 at 11:44 AM
Jun 13, 2019 at 11:44 AM
Hi Visco,
May I suggest a different code as it is easier to work for the bottom up when inserting.
Give this a shot:
Best regards,
Trowa
May I suggest a different code as it is easier to work for the bottom up when inserting.
Give this a shot:
Sub RunMe() Dim lRow, x As Integer lRow = Sheets("Sheet1").Range("A1").End(xlDown).Row + 1 For x = lRow To 3 Step -1 Sheets("Sheet2").Range("A1:A13").Copy Range("A" & x).Insert Shift:=xlDown Next x End Sub
Best regards,
Trowa