class SpreadsheetApp method .insertSheet()

SpreadsheetApp is the Apps Script service.

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

What it does

Adds a new sheet tab to the spreadsheet.

Why it's used

  • Add a new tab for this week's report without manual clicking.
  • Create a scratch sheet for imports before merging into the main data.

Common errors

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

Explore

Related methods

Better Sheets tutorials

Google Maps Scraper for Outreach

Google Maps Scraper for Outreach

Get this fun template to search on google maps via API, and quickly mess...
How to Power Testimonials with Google Forms and Sheets

How to Power Testimonials with Google Forms and Sheets

I show you how I use a Google Form and a Google Sheet to power the testi...
Scrape Google Maps

Scrape Google Maps

Scrape any query in Google Maps into your Google Sheets. Enter your API ...
Scrape Google Maps Added Phone and Reviews

Scrape Google Maps Added Phone and Reviews

Added two helper functions to get Phone numbers and reviews of the Googl...

Related blog posts

Written guides about SpreadsheetApp.insertSheet().

Browse the blog