[詢問] 如何在試算表中以特定值觸發自動寄信?

看板Google作者 (....)時間7年前 (2017/03/13 21:02), 編輯推噓1(107)
留言8則, 2人參與, 最新討論串1/1
我設計了一個借用物品的 Google 試算表如連結: https://goo.gl/qlDXlY 我想要的效果是:若 I 欄的值變成「逾期」,則自動寄信到 G 欄內的借用者 E-mail, 通知借用者該還物品了。 https://productforums.google.com/forum/#!topic/docs/wNPae26EtGI 其實我已經搜尋到討論區解答,但是因為沒有寫 Script 的基礎,不了解這篇文章的解答 要如何實際套用? 解答者說要 1. go to Tools –> Script Editor. You will see some 'code'. 2.Go to the Run menu and choose Initialize. The Google Script will now require you to authorize the script – just click the Accept button and you’re done. 問題在於我的 Run menu 並沒有 Initialize 這個選項,只有一個 myFunction 方便請問先進們,要如何套用此解答裡的 Script 呢?感恩! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.159.192.74 ※ 文章網址: https://www.ptt.cc/bbs/Google/M.1489410156.A.307.html

03/13 21:27, , 1F
你要把那個範例寫進你自己的script裡。那個範例裡有
03/13 21:27, 1F

03/13 21:27, , 2F
兩個 function, 一個 Initialize(), 一個 SendNotif
03/13 21:27, 2F

03/13 21:28, , 3F
ication()。把這兩個function寫進你的script,你就
03/13 21:28, 3F

03/13 21:29, , 4F
會在run menu看到這兩個function的選項
03/13 21:29, 4F

03/13 21:30, , 5F
那個myFunction只是系統預設的空函數,你開新的
03/13 21:30, 5F

03/13 21:31, , 6F
script都會出現,刪掉就好
03/13 21:31, 6F

03/14 07:25, , 7F
謝謝,我已經寫進 Script 裡了,但應該要再修改
03/14 07:25, 7F

03/14 07:26, , 8F
成符合我設計的借還登記表,苦手中,有點難度 QQ
03/14 07:26, 8F
文章代碼(AID): #1OnfXiC7 (Google)