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())
Use getFormulasR1C1 and setFormulasR1C1 to copy formulas and preserve relative references. For example:
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
var currentRow = sheet.getLastRow();
var sourceRange = sheet.getRange(currentRow, 3, 1, 4);
var sourceFormulas = sourceRange.getFormulasR1C1();
currentRow++;
var targetRange = sheet.getRange(currentRow, 3, 1, 4);
targetRange.setFormulasR1C1(sourceFormulas);
https://developers.google.com/apps-script/reference/spreadsheet/range#getformular1c1 https://developers.google.com/apps-script/reference/spreadsheet/range#setformulasr1c1formulas