You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julian Halliwell edited this page Mar 6, 2024
·
1 revision
For the current spreadsheet library instance, allows you to control whether to return cached or freshly calculated formula values. Workbooks generally cache values that have already been calculated.
setReturnCachedFormulaValues( state )
Required arguments
stateboolean
Note
The library default is true which is best for performance and can help avoid exceptions in cases where POI is unable to run a specific formula in your workbook.
Example
spreadsheet = New spreadsheet();
spreadsheet.setReturnCachedFormulaValues( false ); // always re-calculate returned formula cell values