Locking all but three cells in Excel

How do I lock all but three cells (m3, m4, and m5) in an excel worksheet please?

Bob SchneiderCo-OwnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
You will need to protect the sheet. Do you want to do this manually or with VBA?
Bob SchneiderCo-OwnerAuthor Commented:
Manually please.
Martin LissOlder than dirtCommented:
  1. Select all the cells on the sheet by way of the little box at the top of the row numbers.
  2. Right-click and choose Format Cells...
  3. Select the Protection tab
  4. If 'Locked' isn't  checked then check it
  5. Click OK
  6. Select M3 to M5
  7. Right-click and choose Format Cells...
  8. Select the Protection tab
  9. Un-check 'Locked'
  10. Click OK
From that point on you can click 'Protect Sheet'/Unprotect Sheet' from the 'Change' pane on the 'Review' tab of the workbook.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Bob SchneiderCo-OwnerAuthor Commented:
Thank you very much!
Martin LissOlder than dirtCommented:
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2018
              Experts Exchange Top Expert VBA 2018
Bob SchneiderCo-OwnerAuthor Commented:
Thank you very much!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.