0
0
Google Sheetsspreadsheet~5 mins

Triggers (onEdit, onOpen) in Google Sheets - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the onEdit trigger in Google Sheets?
The onEdit trigger runs a script automatically whenever a user changes a cell in the spreadsheet. It helps automate tasks based on edits.
Click to reveal answer
beginner
When does the onOpen trigger run in Google Sheets?
The onOpen trigger runs a script automatically every time the spreadsheet is opened by a user. It is useful for setup tasks like creating menus.
Click to reveal answer
intermediate
Can onEdit triggers run if a script changes a cell value?
No, onEdit triggers only run when a user manually edits a cell, not when a script changes a cell value.
Click to reveal answer
beginner
How do you create a simple onEdit trigger function in Google Sheets?
You write a function named onEdit(e) in the script editor. Google Sheets automatically runs it when a cell is edited.
Click to reveal answer
beginner
What kind of tasks are good candidates for onOpen triggers?
Tasks like adding custom menus, showing welcome messages, or setting up initial spreadsheet states are good for onOpen triggers.
Click to reveal answer
Which trigger runs when you open a Google Sheet?
AonOpen
BonEdit
ConChange
DonLoad
What event causes the onEdit trigger to run?
AScript changes a cell
BSpreadsheet opens
CUser edits a cell
DSpreadsheet is saved
Can onEdit triggers detect changes made by scripts?
AYes, always
BOnly if script calls onEdit manually
COnly on weekends
DNo, only user edits
What is the correct function name for an onOpen trigger?
AonOpen(e)
BonOpen()
CopenTrigger()
DonOpenTrigger()
Which trigger is best to add a custom menu when the sheet opens?
AonEdit
BonOpen
ConChange
DonInstall
Explain how the onEdit trigger works in Google Sheets and give an example of when you might use it.
Think about what happens when you change a cell manually.
You got /3 concepts.
    Describe the purpose of the onOpen trigger and how it can improve user experience in a spreadsheet.
    Consider what you want users to see or have ready when they open the sheet.
    You got /3 concepts.