Accessing spreadsheet in Google Script

前端 未结 2 2022
小蘑菇
小蘑菇 2021-01-11 16:19

I am writing a google script on top of a spreadsheet. I want to deploy it as a web app. It shows some values. Unfortunately, with my current code, google reminds me:

2条回答
  •  悲哀的现实
    2021-01-11 16:50

    Not need to use ID , just try this code ( change mygooglelocation with your Spreadsheet name and range of cells. Working very well for me with google maps...

      var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('mygooglelocation');
      var ss = SpreadsheetApp.getActive();
      var mylocationInfo   = ss.getRange("A2:B4").getValues();
    

提交回复
热议问题