select activate range in sheet in google script code example
Example 1: get data of active cell google script
let actSheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
let actData = actSheet.getActiveRange().getValue();
Example 2: get active sheet google script
SpreadsheetApp.getActiveSheet()