Cuestionario vinculado a una guía · Medio Nivel

Cómo escribir macros y scripts de hojas de cálculo con AI Quiz

Pruebe cuándo usar scripts en lugar de fórmulas, cómo escribir solicitudes seguras de VBA y Apps Script, y cómo probar correos electrónicos y macros de limpieza sin perder datos.

Pregunta 1 de 8

¿Qué tarea requiere un guión en lugar de una fórmula?

Vista previa de cada pregunta8 preguntas

Las respuestas y explicaciones aparecen a medida que realiza el cuestionario.

  1. ¿Qué tarea requiere un guión en lugar de una fórmula?
    • Totaling a column of sales
    • Looking up a price from a table
    • Emailing every person whose status is Approved
    • Formatting a number as currency
  2. ¿Qué idioma utiliza Google Sheets para los guiones?
    • VBA
    • Apps Script, which is JavaScript-based
    • Python
    • Office Scripts only
  3. ¿Por qué la guía hace hincapié en las pruebas de macros de Excel en una copia del archivo?
    • 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
  4. ¿Cuál es la primera prueba más segura para un script que envía correos electrónicos?
    • 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
  5. ¿Por qué una macro debería eliminar filas de abajo hacia arriba?
    • 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
  6. 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
  7. 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
  8. 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