Adds or updates the note attached to a cell.
class SpreadsheetApp method .setNote()
SpreadsheetApp is the Apps Script service.
.setNote() is the method name you will see after a dot in your code.
What it does
Why it's used
- Attach a hover note explaining how a value was calculated.
- Leave audit trail comments on specific cells.
Common errors
- Forgetting parentheses on setNote. Write SpreadsheetApp.setNote(), not SpreadsheetApp.setNote or setNote by itself.
- Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').setNote().
- Adding spaces where they do not belong. Write SpreadsheetApp.setNote(), not SpreadsheetApp .setNote(), SpreadsheetApp.setNote (), or SpreadsheetApp . setNote().
- Wrong capitalization. Use SpreadsheetApp and setNote, not spreadsheetapp or setnote.
Explore
Related methods
-
.setValue()
Writes a value into a single cell.
-
.appendRow()
Adds a new row of data at the bottom of the sheet.
-
.insertSheet()
Adds a new sheet tab to the spreadsheet.
-
.clear()
Removes values, formatting, and notes from a range.
-
.setWrap()
Turns text wrapping on or off for cells in a range.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about SpreadsheetApp.setNote().
Sell Note Taking Templates Built in Google Sheets
How to design note taking templates in Google Sheets for a specific audience, with custom bullets and email digests, and sell them to students and pros.
Read post →How to reference a different Google Spreadsheet in Apps Script?
Transferring Data Between Cells in Different Spreadsheets
Read post →What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →