Does anyone know how to use the OO uno bridge api to "select all" in a Calc sheet?
Alternatively, finding the maximum used row and column number would work.
What I want to do is apply a format to all the cells in the spreadsheet.
(The reason being that I'm saving the sheet as csv, so numbers are not accurately saved unless the format provides enough decimal places.)
Assuming you have already connected to OpenOffice and
document
is a spreadsheet that has been opened or created.I do get an error (Attribute Error) with the line:
By combining the two information at 1: http://nab.pcug.org.au/transferdemo_oocalc.py and 2: https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Cells_and_Ranges
I came up with the following solution:
you may then access those values in your code like this:
and create a range
or whatever for further work.