Each day I paste assignments to employees in each employees respective sheet. These assignments have hyperlinks in portions of the data. At the end of each day I copy their assignments for that day and paste at the bottom of a master sheet to have record of what each employee has done daily.
I have attempted at a few different scripts to automate, but each one only performs parts of this task. The first one worked perfectly, but only copied values. Once I resolved that, my updated script would no longer paste at the bottom but instead paste over the top of data already in the master sheet.
My goal is to copy data from all sheets while maintaining their proper format, and pasting them at the bottom of a master sheet with some rows in between so you can distinguish each employees assignment each day.
Any advice would be greatly appreciated.
The script below gets me very close, but it only pulls one sheet. When I have tried to make adjustment to include a second sheet I have had no luck. I have copied the function and just inputted the next sheets, but then it only ran the last function. I need the script below to do what it is currently doing, but I need it to pull data from "110', '310', '410', and so on.
function mynewFunction() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('110'),true);
spreadsheet.getRange('A1:L').activate();
var target = SpreadsheetApp.openById("1Er2RyznPqkGERBjgCVVyEWelRPKYhPBri7BjO1yv6wQ");
var source_sheet = spreadsheet.getSheetByName('110');
var target_sheet = target.getSheetByName("target");
var source_range = source_sheet.getActiveRange();
var last_row = target_sheet.getLastRow();
var values=source_range.getValues();
source_sheet.getRange(1, 1, values.length, values[0].length).copyTo(target_sheet.getRange(last_row + 2,1));
spreadsheet.getRange('A2').activate();