简体   繁体   English

在谷歌工作表中定义特定单元格

[英]define specific cell in google sheet

I found the below JavaScript code and I really need it but with some changes.我找到了下面的 JavaScript 代码,我真的很需要它,但做了一些更改。
this link Sending emails from a Spreadsheet此链接从电子表格发送电子邮件

let see the problem here:让我们看看这里的问题:

var emailAddress = row[0];  // First column

Now I'm trying to make script send an email mail defined by cell A2 not all emails in row[0] .现在我试图让脚本发送由单元格A2定义的电子邮件,而不是row[0]所有电子邮件。
Then the script delays 1 minute or any thing and goes to send next A3 and loop然后脚本延迟 1 分钟或任何事情并发送下一个A3循环

Google Apps script has a Utilities class, which among other things provides a sleep method. Google Apps 脚本有一个Utilities类,其中提供了一个sleep方法。

To have the script for a minute before sending an email to the next recipient try inserting Utilities.sleep(60000) , to have it sleep for 60k milliseconds to have it wait for one minute.要在向下一个收件人发送电子邮件之前让脚本运行一分钟,请尝试插入Utilities.sleep(60000) ,让它休眠 60k 毫秒以等待一分钟。
Insert this in the row directly following the call to MailApp.sendEmail before the closing bracket.在结束括号之前直接将其插入到调用MailApp.sendEmail之后的行中。

Be aware that there is a limit on how long scripts can run (6 minutes) and sleeping counts towards that.请注意, 脚本可以运行的时长(6 分钟) 是有限制的,睡眠也算在内。

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

相关问题 特定工作表和特定单元格中的Google工作表Duplicatea特定工作表 - Google sheet Duplicatea specific sheet from a specific sheet and specific cell 获取特定表的谷歌电子表格的字体单元格和背景色单元格 - getting font cell and backcolor cell of a specific sheet of google spread sheet 使用 Google 脚本从 Google 表格上的特定单元格命名新表格 - Naming a New Sheet with Google Scripts from a specific cell on a Google Sheet Google表格脚本可为特定单元格添加时间 - Google Sheet Script To Add Time To Specific Cell 正则表达式在谷歌表格单元格中查找特定公式 - REGEX to find a specific formula in a google sheet cell 更改 Google 工作表上特定单元格的背景颜色 - Changing background color of specific cell on Google sheet Google工作表:如何添加链接以跳转到其他工作表的特定单元格 - Google sheet : How to add link to jump to specific cell of other sheet Google Sheet - 在修改特定工作表上的任何单元格时添加时间戳 - Google Sheet - Add Timestamp When Any Cell on Specific Sheet is Modified 谷歌文档合并在谷歌表中的特定单元格的编辑 - Google doc merge on edit of specific cell in google sheet 如果特定单元格在谷歌表上已满,则应用下拉列表 - apply dropdown list if a specific cell is full on google sheet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM