如何获取注释或评论 [英] How to get a note or comment

查看:23
本文介绍了如何获取注释或评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含单元格评论/笔记的 Excel,我已将其上传到 Google 云端硬盘,并将其转换为 Google 电子表格.如何检索单元格 A1 的评论?

I have an Excel containing cell comments/notes, I've uploaded it to Google Drive, and converted it into a Google Spreadsheet. How may I retrieve the comments for cell A1?

API 没有描述如何获取笔记或来自单元格的评论.

The API doesn't describe how to get a note or comment from a cell.

推荐答案

Google Apps 电子表格 API 仅提供对电子表格数据的编程访问.您无法使用 API 访问评论.

The Google Apps Spreadsheet API only provides programmatic access to spreadsheet data. You cannot access comments using the API.

可以使用 Google Apps 脚本获取一个单元格或单元格范围的注释.有关这些方法,请参阅类范围文档:

You can get the Notes for a cell or range of cells using Google Apps Script. See the Class Range documentation for these methods:

  • getNote() - 返回与给定单元格关联的注释.
  • getNotes() - 返回与范围内单元格关联的注释.

有与此功能相关的未解决问题,主要涉及评论(其他"类型的注释).请参阅问题 1818问题 2566

There are open issues related to this functionality, mainly concerning comments (the "other" type of note). See Issue 1818 and Issue 2566

在对您的问题发表评论时,SGC 询问您是否查看过developer.google.com/drive/v2/reference/comments/getdevelopers.google.com/drive/v2/reference/comments/list;这些是文件级别的注释,而不是附加到电子表格单元格的注释.

In a comment on your question, SGC asks if you've looked at developers.google.com/drive/v2/reference/comments/get and developers.google.com/drive/v2/reference/comments/list; these are FILE level comments, not the comments attached to a spreadsheet cell.

这篇关于如何获取注释或评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆