Jump to content

Makros/Python-Leitfaden/Calc/Calc-Wertebereiche

From The Document Foundation Wiki
This page is a translated version of the page Macros/Python Guide/Calc/Calc ranges and the translation is 100% complete.

⇐ Zurück zum Python-Leitfaden, Calc

Wertebereiche

VORSICHT Kopieren oder importieren Sie die Funktion msgbox von Nützliche Funktionen

Zelle mittels Namen holen

doc = XSCRIPTCONTEXT.getDocument()
    sheet = doc.CurrentController.ActiveSheet
    cell = sheet['A1']
    msgbox(cell.AbsoluteName)

Zelle mittels Position holen

doc = XSCRIPTCONTEXT.getDocument()
    sheet = doc.CurrentController.ActiveSheet
    # Cell C6
    row = 5
    column = 2
    cell = sheet[row,column]
    msgbox(cell.AbsoluteName)

⇐ Zurück zum Python-Leitfaden, Calc