Dear forum,
How create macro for insert row in every data?
please find the attachment for more details.
Thank you very much
Dear forum,
How create macro for insert row in every data?
please find the attachment for more details.
Thank you very much
One way, try:
![]()
Option Explicit Sub InsertRows() Dim lLRow As Long Dim lLC As Long lLRow = Range("A2").End(xlDown).Row For lLC = lLRow To 4 Step -1 Range("A" & lLC).EntireRow.Insert shift:=xlDown Next 'lLC End Sub
Regards
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
or check attached file, run macro "Insr"![]()
Sub Insr() Dim i As Long: Application.ScreenUpdating = False For i = [a3].End(xlDown).Row To 4 Step -1 If Cells(i, 1) <> "" Then Cells(i, 1).EntireRow.Insert shift:=xlDown: Next: End Sub
Thank you very much... you both are great,master![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks