programming - Libre Calc - accessing cellsWhat links here?
Dim oSheets
Dim oSheet
Dim oCell
oSheets = ThisComponent.getSheets()
For i = 0 To oSheets.getCount() - 1
    oSheet = oSheets.getByIndex(i)
    oCell = oSheet.getCellByPosition(0, 1) ' GetCell A2
    TheSum = TheSum + oCell.getValue()
Next
SumCellsAllSheets = TheSum


Use oSheet.getCellRangeByName("A2") to return a range of cells by name.

Cell = Sheet.getCellRangeByName("A1")
Cell = Sheet.getCellByPosition(c, r)
programming - Libre Calc - accessing cells
AutoCAD - anonymous blocks
programming - sqlite2 - c interface
programming - C - function ferror
programming - C - function fwrite
linux - Epson Perfection V330 Scanner
MC6802 - instruction set - Branch if Greater Than to Zero
filename:programming - Libre Calc - accessing cells
filename:programming%20%2D%20Libre%20Calc%20%2D%20accessing%20cells
last edit:January 26 2013 17:13:18 (4407 days ago)
ct = 1740080000.000000 = February 20 2025 14:33:20
ft = 1359238398.000000 = January 26 2013 17:13:18
dt = 380841602.000000