I need to copy and paste Formulas only in a spreadsheet using Google Apps Script
var range = activeSheet.getRange(targetRow-1, 1, 1, activeSheet.getLastColumn());
range.copyTo(activeSheet.getRange(targetRow, 1, 1, activeSheet.getLastColumn()), {contentsOnly:false});
This give me the full information, including the formulas and data. However, I wish to only copy the formulas (without data).
CopyFormulasToRange
unfortunately does not exists.