A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Please try with below code
Public Sub insert_rows()
Dim lastrow As Long
Dim EndRow1 As Long
Dim lastcellno1 As String
Dim findvalue1 As String
lastrow = Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To lastrow
findvalue1 = Worksheets("Sheet2").Range("A" & i).Value
EndRow1 = Worksheets("Sheet1").Range("A:A").Find(what:=findvalue1, after:=Worksheets("Sheet1").Range("A1"), searchdirection:=xlPrevious).Row
lastcellno1 = "A" & EndRow1 + 1
Worksheets("Sheet1").Range(lastcellno1).EntireRow.Insert
Next i
End Sub