Eine Formel in eine Zelle stellen
Appearance
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Spende
Beschreibung
Eine Formel in eine Zelle stellen
Python Code
def main(args=None):
# ~ NAME_SHEET = 'Sheet1'
document = XSCRIPTCONTEXT.getDocument()
sheet = document.CurrentController.ActiveSheet
# ~ Falls irgendein anderes Tabellenblatt gewünscht ist
# ~ sheet = document.Sheets[NAME_SHEET]
cell = sheet['B11']
cell.Formula = '=SUM(B2:B10)'
sheet['B11:D11'].fillAuto(1, 1)
return