diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | examples/escape_formula_example.md | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -131,7 +131,7 @@ Axlsx.escape_formulas = true Then, set the following on each cell you'd like to add a formula: ```ruby -cell.escape_formulas = true +cell.escape_formulas = false ``` Refer to examples/escape_formula.md for how to set `escape_formulas` on the workbook, worksheet, row and/or cell level. diff --git a/examples/escape_formula_example.md b/examples/escape_formula_example.md index 9a8efc21..72015866 100644 --- a/examples/escape_formula_example.md +++ b/examples/escape_formula_example.md @@ -10,7 +10,7 @@ The following are possible: | Global | `Axlsx.escape_formulas = true` | Affects worksheets created *after* setting. Does not affect existing worksheets. | | Workbook | `workbook.escape_formulas = true` | Affects child worksheets added *after* setting. Does not affect existing child worksheets. | | Worksheet | `workbook.add_worksheet(name: 'Name', escape_formulas: true)` | | -| Worksheet | `worksheet.worksheet = true` | Affects child rows/cells added *after* setting. Does not affect existing child rows/cells. | +| Worksheet | `worksheet.escape_formulas = true` | Affects child rows/cells added *after* setting. Does not affect existing child rows/cells. | | Row | `worksheet.add_row(['=FOO()', '=BAR()], escape_formulas: [true, false])` | Can specify as either Boolean (all cells) or Array (one value per cell). | | Row | `row.escape_formulas = [true, false]` | Changes the `escape_formulas` value on existing cells. Can use either Boolean or Array. | | Cell | `cell.escape_formulas = true` | | |
