1
저는 특정 구를 입력 할 때 Google 시트에서 셀의 배경색을 변경하는 사람을 위해 빠른 코드를 작성하려고했습니다. 코드는 오류없이 잘 실행되지만 스프레드 시트에는 아무 것도 출력되지 않습니다. 어떤 도움이라도 훌륭 할 것입니다. 나는 일이 다시 작성한getActiveCell()은 Google 스크립트에서 저에게 맞지 않습니다.
function ChangeCellHighlight() {
//returning value of active cell
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet =ss.getSheets()[0];
var cell = sheet.getActiveCell();
//typing "Hay" will trigger cell background color
if (cell == 'Hay') { color
cell.setBackgroundRGB(255, 0, 0); //red cell background
}
}
@ coder-croc 완료. – carlosaicrag