Created
December 10, 2018 18:14
-
-
Save ndthanh/0e64a7740e36982cb1676cff6a3d10a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//8. hide all sheets except the active one | |
function hideAllSheetsExceptActive() { | |
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets(); | |
sheets.forEach(function(sheet) { | |
if (sheet.getName() != SpreadsheetApp.getActiveSheet().getName()) | |
sheet.hideSheet(); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment