Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell is locked but still editable...

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;
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell is locked but still editable...


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


--
Kaak
------------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
View this thread: http://www.excelforum.com/showthread...hreadid=528052

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell is locked but still editable...

thank you !
but i am trying to lock it not to unlock it...

Tomer

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
editable cell in a dropdown list Nelson Noel Excel Worksheet Functions 1 February 21st 09 05:46 PM
locked cell not locked Wanna Learn Excel Discussion (Misc queries) 1 December 17th 08 06:01 PM
How to make cell not editable [email protected] Excel Worksheet Functions 1 August 6th 07 09:11 AM
Protect a Cell in an Editable Range Gary Excel Programming 1 February 18th 04 07:09 AM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"