I am trying to translate an excel file. Cell string will be extracted to single files and after the translation is done, the translation should be filled to the original cell.
I can read the excel cell values with the code below. But I cannot change their values since cells are read-only.
Do I have to create a new excel file or is there a way to directly modify these cells.
Thanks.
I can read the excel cell values with the code below. But I cannot change their values since cells are read-only.
Do I have to create a new excel file or is there a way to directly modify these cells.
B4X:
Sub Read
Dim wb As PoiWorkbook
wb.InitializeExisting(File.DirApp,"test.xlsx","")
Dim sheet1 As PoiSheet
sheet1= wb.GetSheet(0)
For Each row As PoiRow In sheet1.Rows
For Each cell As PoiCell In row.Cells
File.WriteString(File.DirApp,row.RowNumber&"-"&cell.ColumnIndex&".html",cell.Value)
Next
Next
wb.Close
End Sub
Thanks.
Last edited: