我试图让这个脚本运行起来并且存在一些问题。基本上,当从列K中的下拉菜单中选择的值被标记为“已批准”时。然后我希望它看看列M和N是否为空,如果是,则清除列K。
现在我在下面运行此选项并选择“已批准”'从下拉列表中没有发生任何变化。
// Checks to see if Account Manager Status as been marked as 'Approved' if it has and there is no PO or Exception then the Account Manager Status will remain blank.
if (changedRange.getColumn() == ColK) {
var stateK = changedRanged.getValue()
// begin switch statement for determining if Account Manager Status reads 'approved'
switch (stateK) {
case "Approved":
if (ColM.isBlank && ColN.isBlank)
{
stateK.clear;
}
break;
}
}