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().
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 →How to Use Google Sheets as a Website Database
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →