Created
April 23, 2020 19:36
-
-
Save tomtaylor/304e0505a042b610d642f9e6e2fec418 to your computer and use it in GitHub Desktop.
Google Sheets macro to refresh all the data source sheets in the current file
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
/** @OnlyCurrentDoc */ | |
function RefreshData() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
SpreadsheetApp.enableAllDataSourcesExecution(); | |
spreadsheet.getDataSourceTables().forEach(function(dataSourceTable) { dataSourceTable.refreshData() }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment