How to fetch data from 2nd sheet in Google SpreadSheets

人盡茶涼 提交于 2019-12-11 16:24:15

问题


Hi I am referring this blog for fetching data from google spreadsheets ,i am able to get data from first sheet using the code mentioned in the article ,but how to fetch data from 2nd Sheet in Same SpreadSheet.

I have not included any code because i am using the same code which is there in the blog.


回答1:


Just Pass the Range as Follows in the Main Method

Original Code

var range = "A:B"; 

change it to

 var range = "SecondSheetName!A:B";


来源:https://stackoverflow.com/questions/47346846/how-to-fetch-data-from-2nd-sheet-in-google-spreadsheets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!