Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Locking cells

I use the code below to lock worksheets in my workbook and it works fine,
but now I need et to prevent selection of locked cells. I tried adding ,
EnableSelection = xlUnlockedCells to the end of the statement but I get an
Expected: Named parameter error

SH.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Locking cells

Never mind I figured it out. Had to add a new line SH.EnableSelection =
xlUnlockedCells


"Patrick Simonds" wrote in message
...
I use the code below to lock worksheets in my workbook and it works fine,
but now I need et to prevent selection of locked cells. I tried adding ,
EnableSelection = xlUnlockedCells to the end of the statement but I get an
Expected: Named parameter error

SH.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True



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
Locking certain cells Beverly Darvill[_2_] Excel Discussion (Misc queries) 3 June 11th 08 05:10 PM
Locking cells Andy_Trow Excel Discussion (Misc queries) 2 July 25th 07 01:17 PM
Cells Locking? Norm Excel Discussion (Misc queries) 7 June 19th 07 02:45 PM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Locking cells Chip Pearson Excel Programming 0 August 17th 03 10:21 PM


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