Translations:Macros/Python Guide/Calc/Calc sheets/46/es

    From The Document Foundation Wiki

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