LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Andy
 
Posts: n/a
Default Still can select locked cells in protected sheet

Anne,

I'm using Excel 2002, and the following macro does what *I* want,
which is to not even be able to select the locked cells:

Sub Workbook_open()
'put this in This Workbook
Dim sh As Worksheet
For Each sh In ActiveWorkbook.Worksheets
sh.Protect
sh.EnableSelection = xlUnlockedCells
Next sh
End Sub

Without the macro, since I saved the workbook with all the sheets
protected, when I reopen the file I still can't alter the locked
cells, but I can select locked cells. It's not that big a deal but
it's aesthetically less pleasing, since I can click on a protected cell
and see the heavy active cell border, and trigger the error message if
I try to enter something in the protected cell. None of this
behavior is possible if I re-protect the sheets.

I'm fine with my fix above. The problem is that I want to share the
template, and I assume the Workbook_open macro will trigger other
user's macro security warnings.


Andy

 
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
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM
Sorting on a protected worksheet Sue Excel Discussion (Misc queries) 6 June 12th 05 09:26 AM
Entering Data in multiple cells on one sheet & having it auto upda haynblend Excel Worksheet Functions 2 March 27th 05 12:41 AM
how can i select all the cells with same color on a sheet if there are multipale colors by vba code uobt Charts and Charting in Excel 1 December 15th 04 05:27 PM


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

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"