Ladies and Gentlemen,
Every week i get a very big excel file, with about 2000 rows.
I need to insert 4 empty rows between all different values in Column A.
I have a macro wich works, but it inserts only one empty row, and
I cant find a way to insert 4 rows. Maybe somenone can explain where
in der formula i need to write in to insert 4 empty rows, instead 1?
My macro code for this is:
Option Explicit
Sub insert()
Dim lngI As Long
For lngI = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
If Cells(lngI, 1) <> Cells(lngI - 1, 1) Then Rows(lngI).Insert Shift:=xlDown
Next
End Sub
INSERT EMPTY ROW.jpg
Afterwards i need to paste some datas and formulas in these empty rows.
Is it possible to do this with VBA, too?
I hope that i could explain my concern understandeble, my english is not the best.
cheers
mandura
Bookmarks