Skip to content

Instantly share code, notes, and snippets.

@ceruleancerise
ceruleancerise / ExportToJSON.bas
Last active September 3, 2024 10:02
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