Automate Google Sheets with Apps Script

Triggers, custom menus, and time-based jobs in Google Sheets.

Use onEdit, onOpen, and time-based triggers in the Apps Script editor to automate Google Sheets: sync data, send reports, and run jobs on a schedule.

Apps Script Explainer, video tutorials, and quiz

Quiz

Advanced Appsscript Users Would Know This

Pick one answer per question. The right choice and a short explanation show up immediately.

1. What is the main purpose of Google Apps Script?

2. Which function is an example of a simple trigger in Google Apps Script?

3. What type of script is attached directly to a Google Sheet?

4. Which of the following tasks can be automated using time-driven triggers?

5. What is a simple trigger in Google Apps Script?

Question 1 of 5

0 / 5

Glossary

Apps Script glossary

Key terms for triggers, scripts, and configuration.

Triggers

Simple trigger
Functions like onEdit and onOpen that run automatically when specific events occur in your Google Sheet.
Install trigger
Runs once when a user installs your script, perfect for initial setup tasks.
onEdit trigger
A simple trigger that fires automatically when cells are edited in your spreadsheet.
onOpen trigger
A simple trigger that runs when a user opens your Google Sheet.

Script types and tools

Bound script
A script attached directly to a Google Sheet, accessible through the script editor.
Script editor
The built-in IDE where you write, edit, and debug your Apps Script code. Explain existing projects with our Apps Script Explainer.
Web app
A deployed Apps Script that can be accessed via URL, allowing external systems to interact with your script.
Custom menu
A user-created menu in Google Sheets that triggers custom functions, typically added via onOpen.

Configuration and limits

Manifest
A configuration file (appsscript.json) that defines your script's properties, including scope permissions.
Scope
The permissions your script requests to access Google services (Sheets, Drive, Gmail, etc.).
Quota
Daily execution limits for Apps Script, including runtime duration and API call limits.
Execution log
A debugging tool in the script editor that shows when scripts ran, errors, and execution details.

Macros

Macro
Recorded actions in Google Sheets that can be replayed. While different from Apps Script, macros can be converted to Apps Script code for more advanced automation.

Common questions

How do I automate Google Sheets automatically?

Use Apps Script triggers like onEdit, onOpen, and time-driven schedules to run tasks automatically whenever a sheet changes or on a recurring timer.

How do I run a Google Apps Script monthly trigger on a specific day?

Create a time-driven trigger in Apps Script and choose monthly scheduling so your function runs automatically on the recurring date you select.

Where do I access triggers in the Google Apps Script editor?

Open your project in the Apps Script editor, then use the Triggers panel to create and manage time-driven and event-based triggers.

What is the difference between simple and installable triggers?

Simple triggers like onEdit and onOpen run automatically for basic events, while installable triggers support scheduled and advanced workflows with broader authorization.

Ship spreadsheet automations with every course included

Every Apps Script course, copyable snippets, project templates, and walkthrough videos. One membership.