---
title: "Protect a named range in a Google sheet"
author: "Phil Bainbridge"
date: 2019-12-12T10:35:50+00:00
modified: 2019-12-28T08:07:31+00:00
canonical_url: https://pulse.appsscript.info/p/2019/12/protect-a-named-range-in-a-google-sheet/
markdown_url: https://pulse.appsscript.info/p/2019/12/protect-a-named-range-in-a-google-sheet.md
categories:
  - "Sheets"
  - "Snippet"
tags:
  - "pbainbridge.co.uk"
description: "The following Google Apps Script code is from some recent learning I have been doing when asked about locking-down certain areas of a sheet. I knew of named ranges and protecting cells but not quite..."
---

# Protect a named range in a Google sheet

> The following Google Apps Script code is from some recent learning I have been doing when asked about locking-down certain areas of a sheet. I knew of named ranges and protecting cells but not quite that it could be done with apps script.

Source: *[The Gift of Script: Protect a named range in a Google sheet*](https://www.pbainbridge.co.uk/2019/04/protect-named-range-in-google-sheet.html)

---

*Published by [Phil Bainbridge](https://pulse.appsscript.info/p/author/phillipbainbridge/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2019/12/protect-a-named-range-in-a-google-sheet/](https://pulse.appsscript.info/p/2019/12/protect-a-named-range-in-a-google-sheet/)*
