What replaces Worksheet_Open in Google Sheets?

When to use it

Use onOpen when Excel macros added menus, refreshed queries, or checked settings at open time.

When to skip it

Skip open triggers when manual refresh or a time-driven trigger is safer for shared files.

Related Tutorials

Watch how Worksheet_Open works

Watch more tutorials
Spreadsheet Automation 101 Lesson 1: onOpen() Trigger - Custom Menu

Spreadsheet Automation 101 Lesson 1: onOpen() Trigger - Custom Menu

This lesson will get you started on your first trigger. It’s the first r...
Activate A Certain Sheet When Opening a Spreadsheet

Activate A Certain Sheet When Opening a Spreadsheet

Create a short function that runs every time a spreadsheet file is open....
Create New Worksheet When Google Form Submitted

Create New Worksheet When Google Form Submitted

Automate copying a template for new form submissions with user data inse...
Create an Internal Google Sheets Add-on

Create an Internal Google Sheets Add-on

The entire process to create and publish a Google Sheets Add-on internal...
Advanced Coding in Google Sheets for Programmers

Advanced Coding in Google Sheets for Programmers

Add a Custom Menu Create Native-like Functions Get URL and Sheet ID's vi...
Add-on menu on open

Add-on menu on open

Instead of just adding a custom menu to a sheet, we're going to turn thi...

Related blog posts

Guides that explain Worksheet_Open in more depth.

Browse the blog

Related terms