Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8912735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:16:52+00:00 2026-06-15T04:16:52+00:00

Inside an Excel worksheet, I would like to protect a cell (A1) from Editing

  • 0

Inside an Excel worksheet, I would like to protect a cell (A1) from Editing and another cell (B1) from Formatting. This means that the user:

  • can’t edit the value of A1
  • can edit the value of B1
  • can’t change the formatting of B1

The “Protect Sheet” option allows to protect all locked cells of an entire Sheet, so A1 and B1, when locked, would have the same protection level (either against formatting or editing).

Is there a way to set individual protections for a specific cell or range, or at least obtain the same behaviour?

Additional info:

  • A solution using VBA is OK (though it looks that the Worksheet.Protect Method has the same limitations…)
  • The cell A1 (for which Edit must be prevented) can be protected against Formatting or not (it doesn’t matter).
  • It should work with Excel 2003.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:16:53+00:00Added an answer on June 15, 2026 at 4:16 am

    Locked doesn’t address formatting as long as you don’t have the allow format cells checked or activated in vba. Therefore you can simply unlock B1 and you wont be able to edit the format with just allowing users to select locked and unlocked cells enabled.

    Sub protectorate()
    
        activesheet.Range("B1").Locked = False
    
        With ActiveSheet
            .Protect
        End With
    
    
    End Sub
    

    This will prevent formatting and value changes on the entire sheet except the value of B1, it will still let you edit the value of B1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Inside my .aspx I have some JSON code that looks like this: function someFunctionName()
I have an sql statment inside of excel cell: =select BLAH from BLAH where
Is it possible to query a table that is located inside Excel's worksheet? Specifically
Hello I am generating an excel file inside my action that I would return
this is taken from an excel worksheet with no VBA involved. Is there any
Inside my Controller i have function that runs after user clicks on item, which
I am adding an Excel Worksheet object inside Word. Excel has a COM addin
In the XML of a worksheet in an XLSX file (Excel 2007) cell tags
I have a Excel addin that displays some structures on the worksheet. Users can
Problem: I have a user who would like to generate an HTML page directly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.