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

Adds or updates the note attached to a cell.

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.

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().

Browse the blog
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.

Copy it to your Google Drive.

Get it free