I want to copy a number from a cell and paste it into another cell on the same sheet using a button.
The cell also has a formula so I only want the number to be taken, not the formula. That uses a RANDBETWEEN.
But to also have the numbers continue to drop down a column but not on the last row.
function copytest()
{var sheet2 = SpreadsheetApp.getActive().getSheetByName('A');
sheet2.getRange("B4").copyTo(sheet2.getRange(sheet2.getLastRow()+1,1,1,1),
{formatOnly:false , contentsOnly:true});
}