I am trying to Lock cell range in excel using C# excel interop services but I am unable to do it with following code
sheet.Range["A1", "A3"].Locked = true;
In Excel, you can only effectively lock cells if you lock the worksheet. What you do is:
Locked = Falsesheet.Protect(UserInterfaceOnly: true).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With