What replaces Option Explicit in Google Sheets?

When to use it

Use explicit const and let when porting large VBA modules to Apps Script.

When to skip it

Skip worrying about Option Explicit when the script is a short recorded macro.

Related Tutorials

Watch how Option Explicit works

Watch more tutorials
The First Thing I Do When Starting a Google Sheet

The First Thing I Do When Starting a Google Sheet

Are you tired of the default look of your Google Sheets? In this video, ...
MAKE Your Google Sheets Add-on WORK

MAKE Your Google Sheets Add-on WORK

In this section of the Add-on course we'll be making the apps script wor...
Embed a Number in a Website from a Google Sheet

Embed a Number in a Website from a Google Sheet

Ever wanted to display some data from a google sheet on your site? Witho...
Uncheck Every Checkbox in Google Sheets

Uncheck Every Checkbox in Google Sheets

Automatically uncheck a whole range of checkboxes. Or just do it yoursel...
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...
Automate Google Sheets With Zero Experience

Automate Google Sheets With Zero Experience

By the end of this video you should be knowledgeable about how to automa...

Related blog posts

Guides that explain Option Explicit in more depth.

Browse the blog

Related terms