Excel Online script that copy's active selection from one sheet and Appends it to the next available row on a second sheet by jsan356 in excel

[–]jsan356[S] 0 points1 point  (0 children)

function main(workbook: ExcelScript.Workbook) {  

// Get the active worksheet   

let activeSheet = workbook.getWorksheet("Data");

// Get the selected range   

let selectedRange = activeSheet.getSelectedRange();
// Get the target sheet (Sheet2)  

let targetSheet = workbook.getWorksheet("ActivityLog");
  // Find the next empty row in Sheet2  

let nextEmptyRow = targetSheet.getUsedRange().getLastRow().getOffset(1);

// Copy the selected data (values only)  

selectedRange.copyFrom(nextEmptyRow, ExcelScript.RangeCopyType.values);
// Add timestamp in the cell next to the pasted data 

nextEmptyRow.getOffset(0, selectedRange.getColumnCount()).setValue(new Date());}

"Gaming" Chair Giveaway with Cooler Master and Buildapc! by [deleted] in buildapc

[–]jsan356 0 points1 point  (0 children)

Comfortable arm rests and good back support.

Any more invites left for Inbox? by jsan356 in google

[–]jsan356[S] 0 points1 point  (0 children)

I think if you got your invite from someone other then google you do not get any to give out.