Google spreadsheet script export active sheet only to PDF
问题 I created loop script for send email with PDF attachment. Loop function works correctly without any error. But email sent with attached PDF file shows all data of all sheets. I want to create PDF file only of ACTIVE sheet and not others. function SendInvoiceNew4() { var sheet = SpreadsheetApp.getActiveSheet(); // Loop from CELL Number Value to CELL Number Value EQUAL for(i=sheet.getRange("H11").getValue();i<=sheet.getRange("I11").getValue();i++) {// *************** Enter Start Invoice Serial