I searched the official documentation, found this formula ExcelScript.ListDataValidation, but i have no clue how to use it. tried writing this way but no help. Anyone knows how to use this function?
let selectedSheet = workbook.getActiveWorksheet();
const myrange = selectedSheet.getRange("CM4:CM5")
const listvalidation: ExcelScript.ListDataValidation =
{
inCellDropDown:true,
source:"yes"
};
myrange.setValue(listvalidation)
Appreciate if there is guru out there could guide me a proper way to write the office script data validation list formula.