I can’t make heads nor tails out of the documentation for uno in relation to text tables and how to use if from the Macro Basic…
sub TableFix
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem What goes here to set table width to automatic?
rem move on to next table ready for retrigger (and/or other macros to format contents)
dispatcher.executeDispatch(document, ".uno:JumpToNextTable", "", 0, Array())
Noting that the record macro doesn’t capture anything in dialog boxes and the keybinds don’t include table relative mode…
I’m at a loss for how to set the table to 100% width in a macro, and need to be able to do so. (Literally several thousand to do)
I can probably figure out the rest of it if I can get how to access the table property for setting the width.
It also doesn’t help that the one example I’ve found in the docs for setting table width in the docs is for creating a table, not modifying an existing.
My goal functionality is click into table, key-trigger a macro (easily set using the tools→customize dialog), have the macro do the equivalent of table→properties tab 0 width = automatic, tab 1, deselect can break across pages/columns, enter, hop to next table (which as can be seen, I can already do.