2014-07-13 6 views
0

스프레드 시트에서 Google 스크립트를 사용하고 있으며 시트 탭의 색상을 지정하고 싶습니다. 어떻게해야하는지 알고 있습니까? Google 스프레드 시트 색상 시트 탭

내가 당신에게 예를 보여 당신은 setBackground의의 기능

를 사용할 필요가 답변

답변

0

당신은합니다 (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.