A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Unfortunately I couldn't reply sooner, so I'm probably too late.
Nevertheless, hereby I give you my code.
When your data ('Delivery type') start in A2 of "Sheet1", you can use:
Sub macro1()
Dim i As Integer, p As Integer
With Sheets("Sheet1")
p = Application.Match("Period", .Range("A2:A500"), 0) + 1
i = Application.Match("Invoice No.", .Range("A2:A500"), 0) + 1
.Rows(p).Cut
.Rows(i + 1).EntireRow.Insert
End With
End Sub