G
G
Grigory Boev2019-11-26 03:14:00
Google Sheets
Grigory Boev, 2019-11-26 03:14:00

How to write/read a comment in Google SpreadSheets?

Good afternoon. Can't find how to read/write cell comment in Google SpreadSheets? How to work with notes - found - these are the setNote ( string ) and getNote () methods. I did not find anything like this for comments, and the macro recorder did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2019-11-28
@oshliaer

Use the Google Drive API.
The algorithm is like this

  1. Get a list of comments (for an API test, you can make a request directly on this page)
  2. Filter by anchorthe received object
    "anchor": "{\"type\":\"workbook-range\",\"uid\":0,\"range\":\"2121905705\"}"
    Somewhere there was a converter rangeto A1-notation, but you can google
  3. Get the selected comments using the get method (if additional information is needed)
  4. Reply to comments or create a new one
  5. Delete or patch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question