marreco
Member
Hi
my loop check value in column I and replicate rows, but i need create a sequential number.
Look my image to understand.
Thank you!
Code:
Sub CriarVolume()
LastRow = Cells(Rows.Count, 9).End(xlUp).Row
For i = LastRow To 2 Step -1
If Cells(i, 9).Value > 1 Then
Num = Cells(i, 9).Value
For j = 1 To Num
Rows(i + 1).EntireRow.Insert
Rows(i).Copy Rows(i + 1)
Next
Rows(i).EntireRow.Delete
End If
Next
End Sub
Look my image to understand.
Thank you!