Cell is locked but still editable...

  • Thread starter Thread starter nogatomer
  • Start date Start date
N

nogatomer

Hi!
i am writing an Excel Addin, that retrives data from server and shows
it on a pre defined template.
i am trying to lock a spesific cell, according to data i retrived from
my server.
before data is entered to sheet, i protect the sheet using:

//i'm protecting the whole sheet
Range tempRange = ws.Cells;
tempRange.Locked = true;
 
Cells are locked to begin with.
You should unlock the cells you want to keep editing and then protect
the sheet.

Like:

Range("E19").Locked = False
ActiveSheet.Protect

Now you can only edit Cell E19

Kaak
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top