What replaces Worksheet_Open in Google Sheets?

Excel can run VBA when a workbook opens. Google Sheets provides an onOpen simple trigger, or an installable onOpen trigger for menus and refresh jobs. There is no exact per-worksheet open event; scope logic to the active sheet inside onOpen if needed.

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.

Better Sheets resources

Related Tutorials

Watch how Worksheet_Open works

Browse 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

Done reading about Worksheet_Open?

Membership unlocks 637+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.