I need to copy an interval in one sheet (let's say Sheet1!C3:V9), and paste it on another sheet, in a variable position determined by a ADRESS formula,(creating a cell with the coordinates that I want), let's say its the cell Sheet2!A5. I tried using app script to embed INDIRECT function, but I didn't had any luck. In the following code, what I want is substitute the random cell 'H13' with the coordinates in cell Sheet2!A5, and paste values in that cell.
function Macro() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('H13').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet1'), true);
spreadsheet.getRange('C3:V9').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Sheet2'), true);
spreadsheet.getRange('Sheet1!C3:V9').copyTo(spreadsheet.getActiveRange(), SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
Thanks for help!