To open Apps Script in Google Sheets, open your spreadsheet and go to Extensions > Apps Script in the menu bar. That opens the script editor in a new browser tab, bound to that specific spreadsheet. On the mobile apps there is no menu entry for it, so you need a desktop browser to reach the editor. The steps below cover the desktop route in detail, plus what to do when the menu item is missing or the editor will not load.

What You'll Need

  • A Google account signed in to a desktop browser (Chrome, Edge, Firefox or Safari all work).
  • A Google Sheets spreadsheet you own, or one shared with you with edit access. Apps Script is not available with view-only or comment-only access.
  • For shared files: the owner must not have restricted the ability for editors to open the script editor. If they have, ask them to open it or grant you a higher role.
  • Pop-up blocking disabled for Google domains, or a willingness to allow the new tab when your browser asks.

Step-by-Step

  1. Sign in to Google Drive at drive.google.com with the account that has access to the spreadsheet.
  2. Open the spreadsheet you want to work with. Double-click it in Drive, or use the search bar at the top of Drive to find it by name.
  3. Wait for the sheet to finish loading. The menu bar across the top should read File, Edit, View, Insert, Format, Data, Tools, Extensions and Help. If you only see File, Edit, View and a few others, the file is still loading or you have limited access.
  4. Click Extensions in the menu bar. It sits near the right-hand end, just before Help.
  5. Choose Apps Script from the dropdown. The script editor opens in a new browser tab, with a project already named something like "Untitled project" and a default Code.gs file containing an empty myFunction.
  6. Rename the project straight away by clicking the project title at the top left and typing a clear name, then clicking Rename. This matters because every bound script shows up in Drive and is easy to lose among untitled projects.
  7. To confirm it is bound to the right file, look for the spreadsheet name in the editor's file list area or check the project's overview. A bound script can read and write that spreadsheet directly with calls like SpreadsheetApp.getActiveSpreadsheet().
  8. Write or paste your code, then save with Ctrl+S (Windows) or Cmd+S (Mac). The editor also autosaves, but a manual save before running is a good habit.
  9. To run a function, pick it from the function dropdown next to the Run button and click Run. The first run asks for authorisation: choose your account, click Advanced, then proceed to the page and allow the scopes the script requests. Only do this for code you wrote or trust.
  10. Return to the spreadsheet tab when you are done. Changes made by the script appear there; you may need to refresh the sheet to see them.

Menu labels can differ slightly by version, device or region, and Google occasionally rearranges items, but Extensions > Apps Script has been the standard path on desktop for a long time.

Common Mistakes

  • Looking for the editor on a phone or tablet. The Sheets mobile apps do not expose Apps Script. Use a desktop browser; a mobile browser requesting the desktop site may work but is unreliable for editing code.
  • Expecting it in a view-only file. If you can read the sheet but not edit it, the Extensions menu will not offer Apps Script. Request edit access from the owner.
  • Confusing bound and standalone scripts. A script opened from inside a spreadsheet is bound to it. A script created at script.google.com is standalone and has no automatic link to any sheet; it must open files by ID or URL.
  • Assuming the editor is per-user. A bound script belongs to the file, so anyone with edit access and permission can open and change the same code. Treat it like any other shared document.
  • Ignoring the authorisation prompt. Code will not run until you grant the scopes it needs. Dismissing the dialog leaves you with a silent failure or a permissions error.
  • Editing the wrong project. Several untitled projects pile up quickly. Rename each one so you can tell which spreadsheet it belongs to.

Tips

  • Bookmark the editor tab while you are actively working; reopening it from the sheet each time is slower.
  • Use the Triggers clock icon in the left sidebar to run functions on a schedule or when the sheet is edited, rather than clicking Run manually.
  • The Executions view in the sidebar shows past runs and their errors, which is the fastest way to see why a function failed.
  • Keep a copy of working code elsewhere (a text file or a second project) before large rewrites. The editor keeps version history under File, but an external copy is simpler to restore.
  • If you only need a quick calculation, the built-in formulas are faster than a script. Reach for Apps Script when you need automation, external APIs or custom menus.
  • Add a custom menu with onOpen() so colleagues can run your functions from the sheet without opening the editor themselves.

Troubleshooting

The Extensions menu has no Apps Script item. Check that you have edit access, that the file is a genuine Google Sheet (not an uploaded Excel file opened in preview), and that you are on desktop. If a Workspace administrator has disabled Apps Script for your organisation, the option is removed for everyone; that is a policy setting you cannot override yourself.

Clicking Apps Script does nothing. A pop-up blocker is the usual cause. Allow pop-ups for Google domains and try again, or open the link in a new tab manually.

The editor loads but shows a blank page or spins forever. Refresh the tab, sign out and back in, and try an incognito window with extensions disabled. Clearing the browser cache is the next step. If it still fails, check Google's Workspace status page for an outage before changing anything else.

"You do not have permission" when running code. Reopen the authorisation flow by running the function again and completing the consent screens. If your organisation blocks third-party OAuth scopes, ask your admin; you cannot approve them yourself.

You opened the wrong project. Close the tab and reopen Extensions > Apps Script from the correct spreadsheet. Bound projects are tied to one file, so the right sheet always opens the right script.

Frequently Asked Questions

Can I open Apps Script on the Google Sheets mobile app?

No. The Android and iOS Sheets apps do not include the script editor. Use a desktop browser to write and run code.

Does opening Apps Script change my spreadsheet?

No. Opening the editor and saving code changes nothing in the sheet until a function actually writes to it. Running a script that modifies data does change the file, so test on a copy first.

Can other people see my script?

Anyone with edit access to the spreadsheet and permission to open the editor can see and edit a bound script. It is shared content, not private to you.

What is the difference between a bound and a standalone script?

A bound script is opened from a spreadsheet and is tied to that file. A standalone script lives at script.google.com and must reference spreadsheets by ID or URL.

Why is Apps Script missing from my Extensions menu?

Usually because you have view-only access, the file is not a native Google Sheet, or your organisation has disabled Apps Script. Check access first, then ask your administrator.

Do I need to install anything?

No. Apps Script runs entirely in the browser. There is no separate download or extension to install.