Custom function as formula in Writer tables

In Calc there is an awsome feature to use custom (Basic-) functions in table formulas like this:

screenshot
(DatesCnt(content) is a small Basic function written by myself.)

Unfortunately, that’s not currently possible with tables in Writer (Version 25.8.5.2 (X86_64), Windows 10).

Is there a plan to integrate this feature into Writer, or is there an add-on that allows the use of custom macros in Writer tables?

1 Like

you can add an enhancement request to 122755 – (Writer-Tables-Formulas) [META] Formulae in Writer tables bugs and enhancements
→ Dependency tree for Bug 122755

Workaround tips:

  • Use a formatted Calc sheet instead of the Writer table if the document contains only the table ad some more textual data.
  • Insert (embed) a Calc object into the Writer document. You can use the macro functions inside the embedded Calc spreadsheet.
  • You can handle the Writer cells by your macros if you write them as Sub-s, based on the API - instead of the usage of pure calculation functions. You can get/set values from/to the Tables and Cells by your macros.You can refresh the result of the Sub-s by an Event - assigned to the Sub.
3 Likes