function saveButton() {
var ss = SpreadsheetApp.getActive();
// [START modifiable parameters]
var sourceRange = ss.getRange('Active Jobs!A2:F2');
var targetRange = ss.getRange('Active Jobs!A3:F3');
// [END modifiable parameters]
sourceRange.copyTo(targetRange);
ss.toast('Data copied to ' + targetRange.getSheet().getName() + '. ' +
'To undo, press Control+Z (on a Mac, ⌘Z).', 'Action button - Save');
var ss = SpreadsheetApp.getActive();
// [START modifiable parameters]
var rangeToClear = ss.getRange('Active Jobs!A2:F2');
// [END modifiable parameters]
rangeToClear.clearContent();
ss.toast("Cleared range '" + rangeToClear.getSheet().getName() + "'!" + rangeToClear.getA1Notation() + '. ' +
'To undo, press Control+Z (on a Mac, ⌘Z).', 'Action button - Clear');
rangeToClear.activate();
}
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE