스프레드 시트에서 Google 스크립트를 사용하고 있으며 시트 탭의 색상을 지정하고 싶습니다. 어떻게해야하는지 알고 있습니까? Google 스프레드 시트 색상 시트 탭
내가 당신에게 예를 보여 당신은 setBackground의의 기능를 사용할 필요가 답변
스프레드 시트에서 Google 스크립트를 사용하고 있으며 시트 탭의 색상을 지정하고 싶습니다. 어떻게해야하는지 알고 있습니까? Google 스프레드 시트 색상 시트 탭
내가 당신에게 예를 보여 당신은 setBackground의의 기능를 사용할 필요가 답변
주셔서 감사합니다 :
Function colorRow(r){
var sheet = SpreadsheetApp.getActiveSheet();
var c = sheet.getLastColumn();
var dataRange = sheet.getRange(r, 1, 1, c);
dataRange.setBackground("white");
}
문서 : https://developers.google.com/apps-script/reference/spreadsheet/range#setBackground(String)
당신은합니다 (setTabColor을 사용할 수 있습니다). 이처럼 사용하는 Google 문서에서
:// This example assumes there is a sheet named "first"
var ss = SpreadsheetApp.getActiveSpreadsheet();
var first = ss.getSheetByName("first");
first.setTabColor("ff0000"); // Set the color to red.
first.setTabColor(null); // Unset the color.
당신이 명확하게 할 수 당신은 OP는 "컬러 시트 탭"에 의해 의미 무슨 생각을? – pnuts