Google App脚本基于相对于每个cellRange的1个单元格引用,为多个cellRange提供了相同的条件格式

贝托克斯

我正在编写一个脚本,该脚本根据每个组的第一个单元格为每个单元格设置条件格式。

For(i=0,i<10,i++)
/*
other part of the script
*/.whenFormulaSatisfied('=INDEX(A1)<0,5')

我想使用不同于A1notation的符号代替A1。我需要A1在每个循环C1,E1,G1等之后变为。

提前致谢

全精

您还可以使用getA1Notation()

  for (var i = 0; i<10; i+=2){
    var cellNotation = sh.getRange(1,i+1).getA1Notation();
    console.log(cellNotation)
  }

结果

3:59:01 PM  Info    A1
3:59:01 PM  Info    C1
3:59:01 PM  Info    E1
3:59:01 PM  Info    G1
3:59:01 PM  Info    I1

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档