I have the following script:
function myFunction()
{
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Eric");
ss.setActiveSheet(sheet).setActiveSelection("D50");
}
I want to copy the value (but not the formula) of cell AG1 to cell D50.