Skip to content

Add one-off script menu option#40

Open
aaronj1335 wants to merge 1 commit intoranmocy:mainfrom
aaronj1335:one-off-script
Open

Add one-off script menu option#40
aaronj1335 wants to merge 1 commit intoranmocy:mainfrom
aaronj1335:one-off-script

Conversation

@aaronj1335
Copy link
Copy Markdown
Contributor

This was a useful little quick hack that seems like it'd be good to keep
around. Even though I probably won't need the code again for this
specific task, it seems like a good little recipe for iterating through
rows.

This was a useful little quick hack that seems like it'd be good to keep
around. Even though I probably won't need the code again for this
specific task, it seems like a good little recipe for iterating through
rows.
Comment thread index.ts
* can be run either from the DEBUG menu in the sheet itself or the
* script.google.com editor.
*/
function oneOffScript() {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of calling it oneOffScript, I think it's better to name it specifically about what it actually does.
So it's much easier for user to understand what will happen if they click on it.
Also update the doc.

Comment thread index.ts
}
}
for (let row = 1; row <= numRows; row++) {
const range = sheet.getRange(row, 1, row, numColumns);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get one cell instead of the entire row?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants