andio
andio

Reputation: 1778

How to refer to other sheet in google app script?

i can access the current sheet using :

var SS = SpreadsheetApp.getActiveSheet();

But how to access other sheets from the same spreadsheet file ?

Upvotes: 0

Views: 65

Answers (2)

Chirav
Chirav

Reputation: 11

var SS = SpreadsheetApp.openById("");

In between quotes, enter the ID of the Spreadsheet you want to use.

How to get the ID of a spreadsheet? The red arrow in this image points to the spreadsheet id.

Upvotes: 1

mshcruz
mshcruz

Reputation: 1987

There are different ways to get sheets in a spreadsheet:

Upvotes: 2

Related Questions