I am trying to find out how to set a number of decimal places and font boldness for a cell in Calc by macro, but i did not succeed yet. In Microsoft Office VBA it can be done simply by:
Cells(row index, column index).NumberFormat = “0.000” (number of zeroes behind decimal point sets the number of decimal places, “0” for no decimal places)
Cells(row index, column index).Font.Bold = False
or
Cells(row index, column index).Font.Bold = True
I am using Libre Office Version 4.2.7.2 and Ubuntu 14.04 LTS. Thanks for help.