Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DayStar
 
Posts: n/a
Default Locking formulas without password protecting worksheet


Does anyone know how to lock a particular cell to prevent the changing
or erasing of a formula without having to password protect the entire
worksheet/workbook?

My field is showing as locked, but is not preventing the deletion or
change of the formula contained there in. We need to share this
workbook without having to password protect it.

Can anyone help?


--
DayStar
------------------------------------------------------------------------
DayStar's Profile: http://www.excelforum.com/member.php...o&userid=32083
View this thread: http://www.excelforum.com/showthread...hreadid=518370

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul B
 
Posts: n/a
Default Locking formulas without password protecting worksheet

DayStar, you have to protect the sheet for this to work, you don't have to
put in a password but the sheet must be protected, another option might be
to warn the person when they select a cell with a formula, want keep them
from changing or deleting it but might work, you could put some code like
this in the worksheet code

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.HasFormula Then
MsgBox ("Please do not remove or change"), , ("Formula In Cell")
Else
End If
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"DayStar" wrote in
message ...

Does anyone know how to lock a particular cell to prevent the changing
or erasing of a formula without having to password protect the entire
worksheet/workbook?

My field is showing as locked, but is not preventing the deletion or
change of the formula contained there in. We need to share this
workbook without having to password protect it.

Can anyone help?


--
DayStar
------------------------------------------------------------------------
DayStar's Profile:
http://www.excelforum.com/member.php...o&userid=32083
View this thread: http://www.excelforum.com/showthread...hreadid=518370



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Locking formulas without password protecting worksheet

Another simple way is to use a different background colour for the
cells you do not want anyone to edit, eg bright yellow or green - just
tell your co-workers not to do anything with the coloured cell(s).

Hope this helps.

Pete

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
Unprotect cells in a worksheet when I have forgotten the password Gee Excel Discussion (Misc queries) 3 March 14th 13 10:42 AM
Add protect worksheet password in macro Kelly Excel Worksheet Functions 1 January 10th 06 02:08 AM
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
Locking and Protecting and NOT displaying formulas RTP Excel Discussion (Misc queries) 2 May 4th 05 11:17 PM
view worksheet formulas bill_morgan_3333 Excel Discussion (Misc queries) 7 January 12th 05 07:21 AM


All times are GMT +1. The time now is 05:13 AM.

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"