Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I protect or lock an Excel worksheet? How do I protect / lock an Excel worksheet, but still have some cells or ranges unprotected or unlocked?

0
Posted

How do I protect or lock an Excel worksheet? How do I protect / lock an Excel worksheet, but still have some cells or ranges unprotected or unlocked?

0

To protect a worksheet, use this… ActiveSheet.Protect password:=”testpass”, DrawingObjects:=False, Contents:=True, Scenarios:=True To unprotect a worksheet, use this ActiveSheet.Unprotect password:=”testpass” To protect a worksheet, but still have some cells or ranges unprotected , first unlock the cells or range you don’t want to protect, then protect the worksheet. the next 2 lines protect the worksheet except the range A10 to D10. ActiveSheet.Range(“A10:D10”).Locked = False ActiveSheet.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123