我發現在Google表單中創建複選框的方式不是很好。當單擊單元格時,是否有一種腳本可以將X或複選標記置於單元格中?我希望腳本能夠在第5列的所有單元格中工作。Google Apps腳本表onClick事件在單元格中放入了一個X
0
A
回答
0
不存在。您可以使用菜單將X放在選定的單元格上,但不能單擊單元格。
-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
請不要在答案中提出問題...而是開始一個新的線程。 –
相關問題
- 1. Google Apps腳本:在範圍內的每個單元格後插入x行
- 2. Google Spreedsheets Apps腳本 - 關注單元格
- 3. google-apps-script在一個電子表格中有多個腳本
- 4. 在Google Apps腳本中調用Google表格插件?
- 5. 在Google Apps腳本中設置單元格邊框寬度
- 6. 表格中的Google Apps腳本
- 7. Google Apps腳本:將單元格更新爲文件名
- 8. Google Apps腳本表格 - 無法將內部表格添加到單元格
- 9. Google Apps腳本 - 在單元格範圍內循環查找值
- 10. Google Apps腳本 - 創建日曆事件
- 11. Google Apps腳本寫入電子表格列背後的一步
- 12. 如何使用Google Apps腳本在Google表格中檢索一系列用戶突出顯示的單元格?
- 13. 在Google Apps腳本的多行中寫入單個值
- 14. 通過Apps腳本以明文格式化Google表格單元格
- 15. 在WordPress中嵌入Google Apps腳本WebApp
- 16. 簡單檢查一個單元格是否被編輯並插入了某個值(Google電子表格腳本)
- 17. Google Apps腳本 - 禁止在腳本運行時編輯單元格
- 18. Google Apps腳本 - 拒絕表單提交
- 19. Google Apps腳本[表單響應數據]
- 20. 將數組從CSV導入Google Apps腳本中的Fusion表格
- 21. Google Apps腳本將行移動到另一個電子表格
- 22. 通過Google Apps腳本部署和使用Google表格插件
- 23. Google Apps腳本 - 訪問單元格備註和註釋
- 24. Google Apps腳本從單元格複製到新行
- 25. 使用Google Apps腳本在Google Apps帳戶中遷移郵件
- 26. 在Google Apps腳本Web應用程序中嵌入Google電子表格
- 27. Google表格腳本 - 刪除表格中的選定單元格
- 28. 如何監控電子表格的Google Apps腳本中的點擊事件?
- 29. Google Apps腳本 - 根據單元格中的日期發送電子郵件
- 30. Google Apps腳本 - 根據單元格中的數據發送電子郵件
有沒有辦法讓點擊時自動填充單元格?我使用以下腳本自動填充編輯左側單元格的時間。 – user2116516
就像我上面說的,你不能抓住一個單元格點擊。 –