如何在試算表中以特定值觸發自動寄信? - Google

Table of Contents

我設計了一個借用物品的 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 呢?感恩!

--

All Comments

Thomas avatarThomas2017-03-15
你要把那個範例寫進你自己的script裡。那個範例裡有
兩個 function, 一個 Initialize(), 一個 SendNotif
Eartha avatarEartha2017-03-19
ication()。把這兩個function寫進你的script,你就
Poppy avatarPoppy2017-03-20
會在run menu看到這兩個function的選項
Robert avatarRobert2017-03-22
那個myFunction只是系統預設的空函數,你開新的
Rae avatarRae2017-03-23
script都會出現,刪掉就好
Thomas avatarThomas2017-03-25
謝謝,我已經寫進 Script 裡了,但應該要再修改
Sierra Rose avatarSierra Rose2017-03-25
成符合我設計的借還登記表,苦手中,有點難度 QQ