Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 231
Default Locking specific cells in a workbook

Hi there,
Somehow the way I know how to lock specific cells in a workbook isn't
working. can you remind me how to do it please?
Also, do you have to adjust the protection for each sheet individually? Or
is there a way to do the whole work book at once?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Locking specific cells in a workbook

If you haven't changed anything, then each cell on the worksheet is locked.

You can select the cells you want unlocked and then
format|cells|protection tab|uncheck locked

But then you have to protect the worksheet.
Tools|Protection|Protect workbook
(Give it a memorable password if you want)

And you have to protect each sheet individually--or use a macro:

Option Explicit
Sub ProtectAllSheets()
dim wks as worksheet
dim myPWD as string
myPWD = "topSeCrEt"
for each wks in thisworkbook.worksheets
wks.protect password:=myPwd
next wks
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


Sarah wrote:

Hi there,
Somehow the way I know how to lock specific cells in a workbook isn't
working. can you remind me how to do it please?
Also, do you have to adjust the protection for each sheet individually? Or
is there a way to do the whole work book at once?
Thanks!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Locking specific cells in a workbook

"Sarah" wrote:
Somehow the way I know how to lock specific cells in a workbook isn't
working. can you remind me how to do it please?


The process would be:
1. Unlock all cells in the sheet first

Select the entire sheet,
Click Format Cells Protection tab
Uncheck "Locked" OK
(As Dave pointed out, all cells are "locked" by default)

2. Lock those specific cells/ranges

Hold down CTRL key and multiselect all the specific cells/ranges
Click Format Cells Protection tab
Check "Locked" OK

3. Apply sheet protection

Click Tools Protection Protect Sheet Password? OK

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
How do i protect specific cells in a shared workbook? Alison84 Excel Worksheet Functions 1 November 2nd 06 01:13 AM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 04:58 PM
Macro to copy specific cells from one workbook to another [email protected] Excel Discussion (Misc queries) 4 June 9th 06 05:32 PM
Copy Data from Workbook into specific Worksheet in other Workbook? kingdt Excel Discussion (Misc queries) 1 March 16th 06 07:55 PM
shared workbook keeps locking and "unsharing" - why? Peter@TGS Excel Discussion (Misc queries) 1 August 19th 05 12:07 PM


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