Sub Refill
Dim wb As PoiWorkbook
wb.InitializeExisting(File.DirApp,"test.xlsx","")
Dim sheet1 As PoiSheet
sheet1= wb.GetSheet(0)
Dim rowIndex As Int=1
For Each row As PoiRow In sheet1.Rows
Dim cellIndex As Int=1
For Each cell As PoiCell In row.Cells
Dim filename As String=row.RowNumber&"-"&cell.ColumnIndex&".html"
If File.Exists(File.DirApp,filename) Then
Dim cellStyle As PoiCellStyle=cell.CellStyle
Dim newCell As PoiCell
newCell=row.CreateCellString(cell.ColumnIndex,File.ReadString(File.DirApp,row.RowNumber&"-"&cell.ColumnIndex&".html"))
newCell.CellStyle=cellStyle
End If
cellIndex=cellIndex+1
Next
rowIndex=rowIndex+1
Next
wb.Save(File.DirApp,"new.xlsx")
wb.Close
End Sub