我已创建一个非常简单地谷歌脚本添加表到谷歌文档:我怎样才能改变“单元格边距”每个脚本
var body = DocumentApp.getActiveDocument().getFooter();
body.clear();
var cells = [
['Cell1', 'Cell2', 'Cell3', 'Cell4'],
['Cell5', 'Cell6', 'Cell7', 'Cell8'],
];
var myT = body.appendTable(cells);
var style ={};
style[DocumentApp.Attribute.HORIZONTAL_ALIGNMENT] = DocumentApp.HorizontalAlignment.RIGHT;
style[DocumentApp.Attribute.FONT_FAMILY] = 'Verdana';
myT.setAttributes(style);
myT.setColumnWidth(0, 178.661);
myT.setColumnWidth(1, 106.9681);
myT.setColumnWidth(2, 74.6011);
该脚本工作正常。现在我得到这个问题:
如何从表中更改“单元格填充”? 我怎样才能确定字段中的字体或颜色(例如col 2 row 2)?
您好,首先感谢。你有一个非常可笑的Sciptexample for mie吗?你有脚本的简单文件吗? –