0
Google App Scriptを使用してStock Takeセルが入力または更新されたときを表示します。セル更新の日付スタンプ
は、以下のような簡単なスクリプトを使用して:
function onEdit(ss) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("StockTake"); // StockTake is the sheet where data is entered
var activeCell = sheet.getActiveCell();
var col = activeCell.getColumn(); // numeric value of column, ColA = 1
var row = activeCell.getRow(); // numeric value of row
if (col == 2 || col == 3 || col == 4 || col == 5 || col == 6 || col == 7) {
sheet.getRange(row, col+6).setValue(new Date()).setNumberFormat('DDD, MMM dd');
}
}
問題は、その時々列ヘッダー意志も日付スタンプです。私は、最初の行に日付印を残さないようにする方法を知りたいと思います。
ありがとうございました!
として表現される= 7 2 < = COL <は、ブリリアント、ありがとうです! – Mars