Skip to content

Instantly share code, notes, and snippets.

View chasecmiller's full-sized avatar

Crumbls chasecmiller

View GitHub Profile
@Spencer-Easton
Spencer-Easton / exportSpreadsheet.gs
Last active November 19, 2024 09:35
Example on how to export a Google sheet to various formats, includes most PDF options
function exportSpreadsheet() {
//All requests must include id in the path and a format parameter
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export
//FORMATS WITH NO ADDITIONAL OPTIONS
//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped