Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

How can I get conditional border line according to different data in google apps script? [closed]

$
0
0

I'm trying to get a different conditional borderline for each cell data.

I've tried code like the one below but couldn't solve the problem.

function myBorder() {var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();spreadsheet.setActiveSheet(spreadsheet.getSheetByName('시트2'))for(var i=1; i < 20 ; i++)for( j=1; j<20; j++){if(spreadsheet.getRange(i,j).getValue().length>0)spreadsheet.getRange(i, j).setBorder(true, true, true, true, null, null, "black", SpreadsheetApp.BorderStyle.SOLID_MEDIUM)}}

example

Is there any way i can do this?


Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images