2015-04-03 40 views
0

我需要幫助爲Google Apps創建腳本!如果特定單元格已更改(例如:E10),我希望能夠發送電子郵件通知。有人可以幫助我嗎?如果單元格發生更改,則觸發電子郵件通知

感謝advnace!

+0

請告訴我們你到目前爲止做了什麼。你有什麼具體問題嗎? – cel 2015-04-03 17:19:57

+0

您是否瀏覽了Apps腳本文檔?發佈一些代碼,直到現在你已經嘗試過。閱讀此文檔:https://developers.google.com/apps-script/guides/triggers/#onedit – KRR 2015-04-03 17:21:13

回答

-1

使用這種素文字........

function sheetTracker() 
{ 
    var ss = SpreadsheetApp.getActiveSpreadsheet(); 
    var cell = ss.getActiveCell().getA1Notation(); 
    if(cell=='E10') 
    { 
    SpreadsheetApp.getUi().alert("email sent.....!"); 
    MailApp.sendEmail('[email protected]', 'Modification in the spreadsheet',"sheet Name: "+ss.getName()+"\nSheet url: "+ss.getUrl()+"\n"+ 'Cell '+cell+' has been modified by '+Session.getActiveUser()+' - new value = '+ss.getActiveCell().getValue().toString()); 
    } 
} 

然後添加觸發器腳本下面.... enter image description here

這可能會解決您的問題...

+0

這沒有檢測到變化 – 2015-04-04 15:44:42

相關問題