class SpreadsheetApp method .create()

SpreadsheetApp is the Apps Script service.

.create() is the method name you will see after a dot in your code.

What it does

Creates a new blank spreadsheet file in Drive.

Why it's used

  • Spin up a fresh report or export file at the end of a workflow.
  • Create a blank workbook for each client or project automatically.

Common errors

  • Forgetting parentheses on create. Write SpreadsheetApp.create(), not SpreadsheetApp.create or create by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').create().
  • Adding spaces where they do not belong. Write SpreadsheetApp.create(), not SpreadsheetApp .create(), SpreadsheetApp.create (), or SpreadsheetApp . create().
  • Wrong capitalization. Use SpreadsheetApp and create, not spreadsheetapp or create.

Explore

Related methods

  • .openById()

    Opens an existing spreadsheet using its Drive file ID.

  • .insertSheet()

    Adds a new sheet tab to the spreadsheet.

  • .activate()

    Makes a sheet or range the active selection.

  • .createMenu()

    Builds a custom menu in the spreadsheet toolbar.

  • .appendRow()

    Adds a new row of data at the bottom of the sheet.

3 Better Sheets tutorials

Automate Emails

Automate Emails

Set up automated email notifications based on Google Sheets data. Super ...
Automatically Copy Spreadsheet Tab to New File with Values Only, No Formulas

Automatically Copy Spreadsheet Tab to New File with Values Only, No Formulas

Automatically copy a spreadsheet tab to a whole new spreadsheet file, ge...
Automatic Calculations

Automatic Calculations

Create custom scripts to make your spreadsheets more like tools.

Related blog posts

Written guides about SpreadsheetApp.create().

Browse the blog