Set columns and rows autofix manually:
format--rows--optional height
format--columns--optional width
How can set columns and rows autofix with code?
Suppose that there are many ods file in the directory `data`,every ods workbook contains 10 worksheets in it.
[Solved] Set columns and rows autofix with code
[Solved] Set columns and rows autofix with code
Last edited by luofeiyu on Sat Feb 01, 2025 5:21 am, edited 1 time in total.
LibreOffice 7.4.7.2 on Debian 12
Re: Set columns and rows autofix with code
Code: Select all
ThisComponent.sheets(0).columns(0).optimalwidth = true
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.