Makros und Tools
GetRow und getColumn
Liest die aktuelle Zeile und Spalte aus.
Achtung der Index beginnt bei 0. A1 = 0,0
Basic
function getRow as integer
oDoc=ThisComponent
If oDoc.SupportsService("com.sun.star.sheet.SpreadsheetDocument") Then
oCelle=oDoc.getCurrentSelection().getCellAddress()
getRow=oCelle.Row
end if
end functionBasic
function getColumn as integer
oDoc=ThisComponent
If oDoc.SupportsService("com.sun.star.sheet.SpreadsheetDocument") Then
oCelle=oDoc.getCurrentSelection().getCellAddress()
getColumn=oCelle.column
end if
end function