What replaces Workbooks.Open in Google Sheets?

Excel VBA opens files with Workbooks.Open. In Apps Script, open another Google spreadsheet with SpreadsheetApp.openById() or openByUrl(), using the ID from the share link. For Excel files on Drive, convert or import first; XLSX opens as a Sheets file after upload.

When to use it

Use openById when a macro consolidated data from multiple workbook files on Drive.

When to skip it

Skip cross-file scripts when IMPORTRANGE or a single master sheet is enough.

Better Sheets resources

Related Tutorials

Watch how Workbooks.Open works

Browse more tutorials
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....
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...
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...
Get Every Editor on Every Google File I Own

Get Every Editor on Every Google File I Own

Get every editor if you're looking for the sheets and documents you've s...
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...
Open Spreadsheet to Motivational Quote Automatically

Open Spreadsheet to Motivational Quote Automatically

Create a simple script to open a particular tab. In this case we're open...

Related blog posts

Guides that explain Workbooks.Open in more depth.

Browse the blog

Related terms

Done reading about Workbooks.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.