You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ssActive = SpreadsheetApp.getActiveSpreadsheet();
var spreadsheet1 = ssActive.getSheetByName('Sheet1');
// ... new tabs in spreadsheet added here
// DATA SOURCE
var spreadsheet1Data = spreadsheet1.getRange(2,1,spreadsheet1.getLastRow(),spreadsheet1.getLastColumn()).getValues(); // selecting 2nd row because the 1st is usually a title row, then starting with 1st cell (2,1). Then dynamically get the last row and last column that any data exists.