简体   繁体   English

检查是否已编辑一个月的Google表格单元格

[英]Check if Google Sheets Cell is Edited for a Month

I have a Google Sheet which has a staff list and a particular column needs to be updated by all the staff members every month. 我有一个Google工作表,里面有一个工作人员列表,所有工作人员每个月都需要更新一个特定的列。 I want to write a google script which will check if the staff have edited their cell or not and automatically email them if they have not. 我想编写一个google脚本,该脚本将检查工作人员是否编辑了他们的单元格,如果没有,则自动通过电子邮件发送给他们。 I figured out how to email them through the script and how to automatically get the current user. 我想出了如何通过脚本向他们发送电子邮件以及如何自动获取当前用户。 Given the cell I need to check, how can I check if it has been edited in the past 30 days ? 给定需要检查的单元格,如何检查过去30天内是否已对其进行编辑?

Any help is much appreciated ! 任何帮助深表感谢 ! Thanks. 谢谢。

that information is not kept per cell and is not part of the api. 该信息不会按单元保存,也不属于api的一部分。

there are a few ways to do it. 有几种方法可以做到。 one way, (assuming new rows are not inserted or removed) is to have a recurring time trigger (say every 1 day or longer) that checks which rows have changed by comparing it with data on a hidden and protected sheet. 一种方法(假设未插入或删除新行)是有一个循环时间触发器(例如每1天或更长时间),通过将其与隐藏和受保护工作表上的数据进行比较来检查哪些行已更改。

store the change status in an extra column in your protected sheet. 将更改状态存储在受保护工作表的另一列中。 update your protected copy with the latest values and email those that are over 1 month late. 使用最新值更新您的受保护副本,并通过电子邮件发送逾期1个月以上的值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM