アットウィキロゴ

v6akb

var credit=new Array();
var col=new Array();
 
function myFunction() {
 
 
  var id="1SIQT3NP_lToVyvhSoypB67SaA0o2JHzvIdQqEOCVCeQ";
 
 
 ex1 = SpreadsheetApp.openById(id);
 sheet = ex1.getSheetByName("data");
 
 
 
fastline=6; 
 
lastline=0;
for(s=6;s<150;s++){ 
name[s] = sheet.getRange(s, 3).getValue();
if(name[s].length>1)lastline=s; 
}
 
 
 
  for(s=fastline;s<lastline+1;s++){
  point[s]=new Array();
   col[s]=new Array();
  }
 
 
 
 
 
 
 
   for(sx=5;sx<50;sx++){
    n=sheet.getRange(5, sx).getValue();
  credit[sx]="n";
     if(n>0)credit[sx]="p";
 
   }
 
   for(s=fastline;s<lastline+1;s++){
    for(sx=5;sx<50;sx++){
      point[s][sx]="0";
  if(credit[sx]=="p")point[s][sx]=sheet.getRange(s, sx).getValue();
  Logger.log(point[s][sx]); 
    }}
 
 
   for(s=fastline;s<lastline+1;s++){
    for(sx=5;sx<50;sx++){
   col[s][sx]="notx";
  if(credit[sx]=="p")col[s][sx]=sheet.getRange(s, sx).getBackgroundColor();
  Logger.log(col[s][sx]); 
    }}
 
 
 
 
}
 
最終更新:2016年07月15日 21:54