function checksetvalue() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('EXAMPLE1');
var valueA1 = sheet.getRange('A7').getValue();
if(valueA1==true) {
sheet.getRange('A8:A15').setValue('A');
//DEFINE MENU SHEET
//PART DROPDOWN
var partCell = sheet.getRange('A8:A15');
var partRange = sheet.getRange('A1:A5');
var partRule = SpreadsheetApp.newDataValidation().requireValueInRange(partRange).build();
partCell.setDataValidation(partRule);
} else {
sheet.getRange('A8:A15').clearContent();
}
}