gpt4 book ai didi

google-sheets - 当工作表名称与单元格冲突时,以 A1 表示法获取工作表中的所有单元格

转载 作者:行者123 更新时间:2023-12-05 08:33:30 25 4
gpt4 key购买 nike

使用新的 v4 Google Sheets API,当它与 A1 表示法中的单元格冲突时,是否可以获取电子表格中所有单元格的范围?

例如,我有一个名为 A001 的工作表。

  1. A001!A1:D3 - 从名为 A001 的工作表中获取范围 A1-D3
  2. Some-other-sheet - 从名为“Some-other-sheet”的工作表中获取所有单元格
  3. A001 - 它不是从名为 A001 的工作表中获取所有单元格,而是从第一个可见工作表中获取单元格 A1。

所以我基本上是在询问案例 #3。是否有可能获得 A001 的所有范围? (当然事先不知道范围)

最佳答案

是的,在工作表名称周围使用单引号,如下所示:

'A001'

If the sheet name has spaces or starts with a bracket, surround the sheet name with single quotes ('), e.g 'Sheet One'!A1:B2. For simplicity, it is safe to always surround the sheet name with single quotes.

https://developers.google.com/sheets/api/guides/concepts

关于google-sheets - 当工作表名称与单元格冲突时,以 A1 表示法获取工作表中的所有单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39638240/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com