Dim template As New FileInfo(Server.MapPath("Xls/Template.xlsx"))
Using package = New ExcelPackage(template)
Dim workbook = package.Workbook
'*** Sheet 1
Dim worksheet = workbook.Worksheets.First()
For i As Integer = 3 To 10
worksheet.Cells("A" + i).Value = "Data"
worksheet.Cells("B" + i).Value = "Data"
worksheet.Cells("C" + i).Value = "Data"
worksheet.Cells("D" + i).Value = "Data"
worksheet.Cells("E" + i).Value = "Data"
Next
package.SaveAs(New FileInfo(Server.MapPath("Xls/myExcel.xlsx")))
End Using