I have some values in column A that I want to copy the first empty cell of column B.
I managed to get the first part of the problem:
function CopyValues() {
var ss = SpreadsheetApp.getActiveSpreadsheet ();
var source = ss.getRange ("MySheet!A4:A10");
source.copyTo (ss.getRange ("MySheet!B32"), {contentsOnly: true});
}
where B32 is the first empty cell in column B.
This works perfectly but of course B32 will not always be first empty cell and i need to get that first empty cell dynamically. I tried a few things by merging other scripts found online, but no success so far...
Any help would be greatly appreciated!
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…