def mi_primera_macro_en_calc():
doc = XSCRIPTCONTEXT.getDocument() cell = doc.Sheets[0]['A1'] cell.setString('Hola, mundo, en Python en Calc') return
</syntaxhighlight>