0
私のスクリプトは、Googleスプレッドシートのドキュメントここ にある数字の文字列を展開すると、私のスクリプトです:Javascript。
SS = SpreadsheetApp.getActiveSpreadsheet();私のスプレッドシートの列Cでは
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "10 Rows", functionName: "TenRows"},
{name: "20 Rows", functionName: "TwentyRows"},
{name: "30 Rows", functionName: "ThirtyRows"},
{name: "40 Rows", functionName: "FortyRows"},
{name: "50 Rows", functionName: "FiftyRows"}]
ss.addMenu("Insert Rows", menuEntries);
}
function TenRows() {
SpreadsheetApp.getActiveSheet().insertRowsBefore(2,10);
}
function TwentyRows() {
SpreadsheetApp.getActiveSheet().insertRowsBefore(2,20);
}
function ThirtyRows() {
SpreadsheetApp.getActiveSheet().insertRowsBefore(2,30);
}
function FortyRows() {
SpreadsheetApp.getActiveSheet().insertRowsBefore(2,40);
}
function FiftyRows() {
SpreadsheetApp.getActiveSheet().insertRowsBefore(2,50);
}
私はそれぞれの行を下る数字の文字列を持っています。この
C
7317
7316
7315
7314
7313
同様
私は行数を挿入するために私のスクリプトを実行すると、どのように私はそれはそれは自動的にこの昇順の番号及びCの欄に入力、それを続けて行うことができますか?
おかげ
Ivo、とにかく私はあなたと文書を共有することができますか?私はこれをどのように実装するのか分からない。 – David