Translations:Macros/Python Guide/My first macro/10/pt-br

From The Document Foundation Wiki
Jump to: navigation, search

def my_first_macro_calc():

   doc = XSCRIPTCONTEXT.getDocument()
   cell = doc.Sheets[0]['A1']
   cell.setString('Hello World in Python in Calc')
   return 

</syntaxhighlight>