Android Question Add Formula to Excel FIle

ilan

Expert
Licensed User
Longtime User
hi

i am adding a formula to an excel file using initializeFormula method.
everything works fine but the only issue is that for some reason a number appear at that cell BUT after clicking on enable editing the correct value appears.

before "enable editing"

1756599487489.png


after "enable editing"

1756599532871.png


this is a simple HYPERLINK formula but also other formulas like SUM ... give the same results.
why is it like this?

thanks
 

ilan

Expert
Licensed User
Longtime User
It will probably not work but try:
B4X:
Dim wcf As WritableCellFormat
wcf.Initialize
wcf.As(JavaObject).RunMethod("setLocked", Array(False))
YourCell.SetCellFormat(wcf)
thanks erel for your answer
as you already assumed the code is not working, i still get 4 before enable editing but now after enable editing i am getting an error for the file and a NA value.
 
Upvote 0
Top