Google Sheets API v4 - 如何获得有价值的最后一行? [英] Google Sheets API v4 - How to get the last row with value?

查看:128
本文介绍了Google Sheets API v4 - 如何获得有价值的最后一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在新的Google Sheets API v4中获取最后一行的值?

我使用它从表中获取范围:



pre $ m $ c $ mService.spreadsheets()。values()。get(ID_SHEET,Sheet1!A2:B50)。execute();

如何检测表单中最后一行的值?
<您可以将范围设置为A2:D,这将获取到工作表中最后一个数据行。


How to get the last row with value in the new Google Sheets API v4 ?

i use this to get a range from a sheet:

mService.spreadsheets().values().get("ID_SHEET", "Sheet1!A2:B50").execute();

how to detect the last row with value in the sheet ?

解决方案

You can set the range to "A2:D" and this would fetch as far as the last data row in your sheet.

这篇关于Google Sheets API v4 - 如何获得有价值的最后一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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