Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Cell protection only half works

I have a protected sheet where the protect properties I have set allow users
only to select unlocked cells. However users can change the formulas of
locked cells by ragging unlocked cells which the locked cells reference.

Can I stop this?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Cell protection only half works

Angus,

You are so right. Cell drag and drop is bad news at data entry time, and
should never be used with or without the protection mechanism. It's for
design time only, wherever there are formulas at play. There seems to be no
protection that will prevent this. I've always told clients either to not
tell data entry folks about it, or to tell them not to use it. If it's
inadvertent clobbering of formulas via drag and drop, you could prevent it
manually with Tools - Options - Edit - Allow dell drag and drop (turn off),
or automatically with this in the ThisWorkbook module:

Private Sub Workbook_Open()
Application.CellDragAndDrop = False
End Sub

This won't stop deliberate formula damage from the determined hackers --
they can just turn it back on manually. Also, it's an application-wide
setting -- it will affect other sheets in the workbook, and other open
workbooks (Excel doesn't handle multiple open workbooks well). It's not
stored with workbooks when saved, like the dopey calculation auto/manual
setting. You could turn it back on automatically when the workbook is
closed with:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CellDragAndDrop = True
End Sub

If there are to be multiple workbooks open concurrently, you could instead
do this in WindowActivate and WindowDeactivate subs, but this presumes all
the other workbooks have the CellDragAndDrop turned on. Otherwise, you'll
mess them up. It seems endless.

All this applies to Excel 2002 and prior. I don't know if it's been
addressed in a later version. I kind of doubt it, but you could look into
it. Or maybe someone else will come forward with a solution. I'm going to
get another cup of coffee. Ranting consumes energy.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Angus" wrote in message
...
I have a protected sheet where the protect properties I have set allow
users
only to select unlocked cells. However users can change the formulas of
locked cells by ragging unlocked cells which the locked cells reference.

Can I stop this?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Cell protection only half works

Is the data so wide and varried that it rules out the use of data validation?
------------------------------------------------------------------------------------



wrote:

I have a protected sheet where the protect properties I have set allow users
only to select unlocked cells. However users can change the formulas of
locked cells by ragging unlocked cells which the locked cells reference.

Can I stop this?

Thanks in advance.

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
Calculating only non-empty cells... Jay Excel Worksheet Functions 9 September 22nd 06 03:20 AM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
How to make a null cell as 0 (Zero) so that the subtraction works Kekin Kakka Excel Worksheet Functions 6 May 9th 06 08:24 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM


All times are GMT +1. The time now is 07:45 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"