2013-10-26 21 views

回答

0

不存在。您可以使用菜單將X放在選定的單元格上,但不能單擊單元格。

+0

有沒有辦法讓點擊時自動填充單元格?我使用以下腳本自動填充編輯左側單元格的時間。 – user2116516

+0

就像我上面說的,你不能抓住一個單元格點擊。 –

-2

有沒有辦法讓點擊時自動填充單元格?我使用以下腳本自動填充編輯左側單元格的時間。

function onEdit(e) { 
    var s = e.source.getActiveSheet(), r, colCell, nextCell; 
    if(s.getName() === 'SignInOut') { //checks that we're on the correct sheet 
    r = e.range; //s.getActiveCell(); 
    colCell = r.getColumn(); 
    if(colCell === 3 || colCell === 5) { //checks the column 
     nextCell = r.offset(0, 1); 
     if(nextCell.getValue() === '') //is empty? 
     nextCell.setValue(new Date()); 
    } 
    } 
} 
+0

請不要在答案中提出問題...而是開始一個新的線程。 –

相關問題