Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Protect contents in a cell from deletion

I need to protect the content of a particular cell from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Nevermind

I figured out what was confusing me. In my excel
application all cells are locked by default. So when I
choose a particular cell and lock it and then protect the
workbook all of the cells are locked. So I had to unlock
the whole workbook and then lock all the cells I need
to... I can't believe I didn't figure this out earlier...

-----Original Message-----
I need to protect the content of a particular cell from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Nevermind

Could you please tell me how you did that? I need to lock
the column headings so noone can change the label when
entering into a form . Thanks for any input. I was having
the same problem.
-----Original Message-----
I figured out what was confusing me. In my excel
application all cells are locked by default. So when I
choose a particular cell and lock it and then protect the
workbook all of the cells are locked. So I had to unlock
the whole workbook and then lock all the cells I need
to... I can't believe I didn't figure this out earlier...

-----Original Message-----
I need to protect the content of a particular cell from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Nevermind

I hope this would help out:

First I would select the whole sheet and then go to
FORMAT, CELLS, PROTECTION and unselect Locked and Hidden.

Then, Select the cells that you would like to lock for
editting and repead the same step as above but this time
choose Locked. Then go to TOOLS, PROTECTION, Protect
Sheet.

There is another way I would lock the cells. If they are
text (as in your case) then I would use the validation
option and specify some weird numbered range, and this
way no one can really change them. ( I used DATA,
VALIDATION, NUmber range)...

-----Original Message-----
Could you please tell me how you did that? I need to

lock
the column headings so noone can change the label when
entering into a form . Thanks for any input. I was

having
the same problem.
-----Original Message-----
I figured out what was confusing me. In my excel
application all cells are locked by default. So when I
choose a particular cell and lock it and then protect

the
workbook all of the cells are locked. So I had to

unlock
the whole workbook and then lock all the cells I need
to... I can't believe I didn't figure this out

earlier...

-----Original Message-----
I need to protect the content of a particular cell

from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
.

.

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Nevermind

There is a more sofisticated way, see also my reply to
the posted item above (Run Macro when contents of cell
change).

If you use the example code I put there and where it
says ' put your code here ... put Range("xx").Select
(make sure xx refers to the next cell in the tab-order),
then whenever the cell you want to protect (in this
example A1) is selected the macro will select the next
cell. Impossible to select the cell and change it like
that.
-----Original Message-----
I hope this would help out:

First I would select the whole sheet and then go to
FORMAT, CELLS, PROTECTION and unselect Locked and Hidden.

Then, Select the cells that you would like to lock for
editting and repead the same step as above but this time
choose Locked. Then go to TOOLS, PROTECTION, Protect
Sheet.

There is another way I would lock the cells. If they are
text (as in your case) then I would use the validation
option and specify some weird numbered range, and this
way no one can really change them. ( I used DATA,
VALIDATION, NUmber range)...

-----Original Message-----
Could you please tell me how you did that? I need to

lock
the column headings so noone can change the label when
entering into a form . Thanks for any input. I was

having
the same problem.
-----Original Message-----
I figured out what was confusing me. In my excel
application all cells are locked by default. So when I
choose a particular cell and lock it and then protect

the
workbook all of the cells are locked. So I had to

unlock
the whole workbook and then lock all the cells I need
to... I can't believe I didn't figure this out

earlier...

-----Original Message-----
I need to protect the content of a particular cell

from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
.

.

.

.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Nevermind

As in
Normally the default value is for the cell to be locked.



--
Regards,
Tom Ogilvy

Diana wrote in message
...
I figured out what was confusing me. In my excel
application all cells are locked by default. So when I
choose a particular cell and lock it and then protect the
workbook all of the cells are locked. So I had to unlock
the whole workbook and then lock all the cells I need
to... I can't believe I didn't figure this out earlier...

-----Original Message-----
I need to protect the content of a particular cell from
being deleted but I do not want to protect the whole
spreadsheet since some of the data in it needs to be
altered on daily basis. Any ideas?
Thank you!
.



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
Protect a Cell - Only insert should be possible, not deletion Fuzzy Excel Discussion (Misc queries) 4 February 11th 09 06:35 PM
protect worksheet but allow row deletion Tia Excel Worksheet Functions 3 December 11th 08 08:01 PM
Conditional deletion of cell contents Colin Hayes Excel Worksheet Functions 2 August 9th 07 10:31 PM
protect a file from deletion SheriTingle Excel Discussion (Misc queries) 2 January 5th 06 01:32 AM
protect formula in cell and still allow data deletion Shawna Excel Discussion (Misc queries) 1 November 4th 05 03:16 PM


All times are GMT +1. The time now is 02:37 PM.

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

About Us

"It's about Microsoft Excel"