Skip to content

Instantly share code, notes, and snippets.

@ceruleancerise
ceruleancerise / ExportToJSON.bas
Last active July 27, 2024 22:42
OpenOffice / LibreOffice: .ods Export To JSON (BASIC Macro)
REM ***** BASIC *****
'Exports sheet(s) to JSON in this file's directory under their sheet name.'
'Booleans are exported as int (1 = true, 0 = false).'
SUB JSONExportAll
sheets = ThisComponent.Sheets
numSheets = sheets.Count