Locking all but three cells in Excel

Bob Schneider
Bob Schneider used Ask the Experts™
on
How do I lock all but three cells (m3, m4, and m5) in an excel worksheet please?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Roy CoxGroup Finance Manager

Commented:
You will need to protect the sheet. Do you want to do this manually or with VBA?
Bob SchneiderCo-Owner

Author

Commented:
Manually please.
Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Initially
  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.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Bob SchneiderCo-Owner

Author

Commented:
Thank you very much!
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
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-Owner

Author

Commented:
Thank you very much!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial