Here is my script:
function CopyRange() {
var sss = SpreadsheetApp.openById('1EA2F99W1lpgTzX3zoTNpzuEXWh-mDkvo9UyZC4kDNtQ'); //replace with source ID
var ss = sss.getSheetByName('UKG-A'); //replace with source Sheet tab name
var range = ss.getRange('G4:K4'); //assign the range you want to copy
var data = range.getValues();
var tss = SpreadsheetApp.openById('1EA2F99W1lpgTzX3zoTNpzuEXWh-mDkvo9UyZC4kDNtQ'); //replace with destination ID
var ts = tss.getSheetByName('UKG-A'); //replace with destination Sheet tab name
ts.getRange(7 && ts.getLastRow()+1,15,1,5).setValues(data); //you will need to define the size of the copied data see getRange()
}
The code works as normal. When I run the code it get data from source sheet and enter on the destination sheet after the last row which has data. But what i want is to define a specific row to start data entry and continue from that row. For example I want data entry to start After the 7th row of UKG-A
sheet.