2

I am having a problem with the maps tutorial specified here, https://developers.google.com/apps-script/articles/maps_tutorial

I am trying to do the first tutorial, make a map from a list of addresses.

I have created the spreadsheet and script, but I get this error when I run the script.

"Cannot find method getRange(number,number,number,number). (line 7)"

Any tips/solutions?

1
  • Do you have a sheet called 'restaurants' ? Also, it is populated with data ? Commented Dec 18, 2012 at 12:46

1 Answer 1

0

If you look at the second line it should be something like:

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('restaurants');

Basically the script expects to have a sheet inside the spreadsheet file called "restaurants" so try to rename the sheet and it should not fail.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.