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

Hi - how do I protect a worksheet
but allow users to edit a range of cells:

a1:a23, b4:b7,l2

Thank You
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Protecting Cells

Hallo,

ActiveSheet.Cells.Locked = True
Range("A1:A23,B1,B1,B4:B7,B1,L2").Locked = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

Greetings jonjo

"teresa" wrote:

Hi - how do I protect a worksheet
but allow users to edit a range of cells:

a1:a23, b4:b7,l2

Thank You

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Protecting Cells

Range("a1:a23,B4:B7,L2").Locked = False

Must be done when the worksheet is unprotected

or do it manually.

--
Regards,
Tom Ogilvy

"teresa" wrote in message
...
Hi - how do I protect a worksheet
but allow users to edit a range of cells:

a1:a23, b4:b7,l2

Thank You



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
Protecting Cells J4shaw Excel Discussion (Misc queries) 1 August 21st 09 11:57 AM
Protecting Cells P. Zicari Excel Discussion (Misc queries) 0 October 24th 07 12:22 AM
Protecting Cells Luck3356 Excel Worksheet Functions 0 September 23rd 06 06:55 PM
Protecting cells Freddie Mac Excel Discussion (Misc queries) 4 July 1st 06 04:10 PM
Protecting cells GregP1962 Excel Discussion (Misc queries) 2 June 7th 06 10:55 PM


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

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"