引导式测验 · 中等 等级
如何使用 AI 测验编写电子表格脚本和宏
测试何时使用脚本而不是公式、如何编写安全的 VBA 和 Apps 脚本请求,以及如何在不丢失数据的情况下测试电子邮件和清理宏。
问题 1 的 8
哪个任务需要脚本而不是公式?
预览每个问题8 问题
当您参加测验时,就会出现答案和解释。
- 哪个任务需要脚本而不是公式?
- Totaling a column of sales
- Looking up a price from a table
- Emailing every person whose status is Approved
- Formatting a number as currency
- Google Sheets 使用什么语言编写脚本?
- VBA
- Apps Script, which is JavaScript-based
- Python
- Office Scripts only
- 为什么指南要在文件副本上对 Excel 宏进行压力测试?
- Macro changes generally cannot be undone with Ctrl+Z
- Copies run macros faster
- Excel refuses to run macros on original files
- The AI cannot read the original file
- 对于发送电子邮件的脚本,最安全的第一个测试是什么?
- Send to the whole list at once to save time
- Turn off the authorization prompt
- Run it on a sheet with no data
- Send only to yourself first, or list recipients before sending
- 为什么宏应该从下往上删除行?
- VBA syntax requires it
- Deleting from the top shifts row numbers and causes rows to be skipped
- The bottom rows are always blank
- It avoids hitting email quotas
- What is the most efficient way to process many cells in Apps Script?
- Call getValue and setValue once for each cell
- Write a separate script for each row
- Read with getValues, process in memory, then write back with setValues
- Refresh the sheet after every change
- How can a script avoid redoing work if it stops partway and is run again?
- Mark each processed row, for example by writing "Sent" in a status column
- Delete the script after each run
- Ask Google to raise the quota
- Hide rows once they are processed
- According to the guide, where does the real risk of macros come from?
- The .xlsm file extension itself
- Adding comments to the code
- Using time-driven triggers
- Running code you do not understand, especially in files from strangers