Download Article
A guide to testing out code in Google's script editor
Download Article
This wikiHow teaches you how to access Google's script editor in a desktop internet browser, and run code in the editor for testing purposes.
Things You Should Know
Steps
-
Open Google Sheets in your internet browser. Type sheets.google.com in your browser's address bar, and hit ↵ Enter or ⏎ Return on your keyboard.
-
Click a spreadsheet file. Find the spreadsheet you want to run a script on, and open it.Advertisement
-
Click the Tools tab. This button is on a tabs bar below the file name in the upper-left corner of your spreadsheet. It will open a drop-down menu.
-
Tap Script editor on the Tools menu. This will open the Google's browser-based script editor in a new tab.
-
Create your script in the script editor. You can type your script here, or delete everything on the page and paste code from your clipboard.
- If you're looking for some useful scripts, Google offers a few basic suggestions in their developer guides .
-
Name your script project. Click the "Untitled project" heading in the upper-left corner of your window, and enter a title for your new script project in the "Edit Project Name" window.
-
Click the icon to run your script. This button is on a toolbar below the file name and tabs bar in the upper-left corner of your window. It will save and run the code in the script editor.
- If you're prompted to authorize script testing, click the Review Permissions button, and Allow script testing in your account settings.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
About This Article
Article Summary
X
1. Open Google Sheets
.
2. Click a file.
3. Click the Tools
tab.
4. Click Script editor
.
5. Enter your script into the editor.
6. Click the Play/Run icon on the toolbar at the top.
Did this summary help you?
Thanks to all authors for creating a page that has been read 81,278 times.
Advertisement