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
/** | |
* This script creates the menu item that can easily be selected to run the Function. | |
*/ | |
function onOpen() { | |
SpreadsheetApp.getUi() | |
.createMenu('Admin') | |
.addItem('Collate and Create', 'collateData') |
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
/** | |
* Get all Sheet data, call Function to Objectify, then loop through rows and log some items. | |
*/ | |
function getPrettyData() { | |
// get spreadsheet | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
// get active sheet and log name |
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
function replaceTextToImage() { | |
// ******************** COMPLETE THESE ITEMS ******************** | |
var searchText = ""; | |
var imageURL = ""; | |
var rowHeight = 100; |
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
/** | |
* A number of Global Variables to speed up repetitive automation. | |
*/ | |
var theSpreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var timeZone = theSpreadsheet.getSpreadsheetTimeZone(); | |
var logSheet = theSpreadsheet.getSheetByName("Log"); |
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
function getFormData(e) { | |
// get Spreadsheet TimeZone | |
var timeZone = SpreadsheetApp.getActiveSpreadsheet().getSpreadsheetTimeZone(); | |
// get Form data | |
var formValues = e.namedValues; | |
// get specific values from Form ****************** |
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
/** | |
* Code to learn about Exponential Backoff. | |
* Developed when experiencing 'Rate Limit' issue with updating a Calendar Event of Attendees. | |
* | |
* DEVELOPED BY THE GIFT OF SCRIPT: https://www.pbainbridge.co.uk/ | |
*/ | |
function mainFunction() { |
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
/** | |
* A number of global variables that are re-used throughout this script. | |
*/ | |
// 5 minute maximum runtime | |
var maxRuntime = 5 * 60 * 1000; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
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
/** | |
* A number of global variables that are re-used throughout this script. | |
*/ | |
// 5 minute maximum runtime | |
var maxRuntime = 5 * 60 * 1000; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
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
/** | |
* A number of global variables that are re-used throughout this script. | |
*/ | |
// 5 minute maximum runtime | |
var maxRuntime = 5 * 60 * 1000; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); |
NewerOlder