- Open Spreadsheet you want to allow access to
- Go to
Tools -> Script Editor - Enable google sheets api:
- Open in the menu
Resources / Advanced Google Services ... - Find
Google Sheetsin the list and enable it - Finish the dialog
- Open in the menu
- In
Script Editormake sureView -> Show manifest fileis checked - Make sure
appscript.jsonfile looks like our./appscript.json - Make sure
Code.gsfile looks like our./code.gs - Publish script by opening
Publish -> Deploy as web app- Set
Project versiontoNew - Set
Execute the app astoMe - Set
Who has access to the apptoAnyone, even anonymous - Hit
Update - (On first try) You have to
Review permissionsandAllowpermissions. Follow on screen instructions.
- Set
- You will get an URL - like:
https://script.google.com/macros/s/xxxxx-yyyyy/exec - Use this with query param
?sheet=header, whereheaderis Sheet Tab name (do not use spaces in Tab names)
Example:
https://script.google.com/macros/s/xxxxx-yyyyy/exec?sheet=Sheet1
-- many thanx to @gabor
I'm not able to test it now, but many thanks @coolaj86 for sharing it it us.