Translations:Macros/Python Guide/Calc/Calc sheets/36/en

    From The Document Foundation Wiki

    doc = XSCRIPTCONTEXT.getDocument()
        sheet = doc.createInstance('com.sun.star.sheet.Spreadsheet')
        doc.Sheets.insertByName(sheet, 0)