Thread
:
Common Spacing of Rows
View Single Post
#
2
Don Guillett
Posts: n/a
try this assuming column A
Sub insertrows()
For i = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1
If Cells(i - 1, 1) < Cells(i, 1) Then _
Rows(i).Resize(5, 1).EntireRow.Insert
Next i
End Sub
--
Don Guillett
SalesAid Software
"rajeev" wrote in message
ups.com...
Hi,
I have a data that runs to about 7500 rows containing different
components.I want to create a common space say 5 rows after every
change of components.Right now i am doing it manually & it takes a hell
of a time to complete it.Anyone can help me to solve this problem.
Thanks in advance.
Regards
Rajeev
Reply With Quote