PC Review


Reply
Thread Tools Rate Thread

Adapt sheet Protection

 
 
Corey
Guest
Posts: n/a
 
      20th Apr 2007
Currently use:

ActiveSheet.protect DrawingObjects:=True, Contents:=True, Scenarios:=False,
AllowFormattingCells:=True


It ALLOWS the user to Select LOCKED Cells still.

How can i have the Cells that are LOCKED to NOT be ENABLED,

Yet have them still able to Select UNLOCKED Cells and be able to Format the Unlocked Cells too?

Is there a :
LockedCellsSelect:=False ?


Corey....


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGltYW5p?=
Guest
Posts: n/a
 
      20th Apr 2007
When you protect sheet, by default two options are selected and those options
allow user to select locked cells.

Go to Tools -> Protection -> Protect Sheet, in that you'l find list of
options underneath "Allow all users of this worksheet to:" deselect following
options from list
1. Select locked cells
2. Select unlocked cells

Hope this helps !!!

"Corey" wrote:

> Currently use:
>
> ActiveSheet.protect DrawingObjects:=True, Contents:=True, Scenarios:=False,
> AllowFormattingCells:=True
>
>
> It ALLOWS the user to Select LOCKED Cells still.
>
> How can i have the Cells that are LOCKED to NOT be ENABLED,
>
> Yet have them still able to Select UNLOCKED Cells and be able to Format the Unlocked Cells too?
>
> Is there a :
> LockedCellsSelect:=False ?
>
>
> Corey....
>
>
>

 
Reply With Quote
 
Coza
Guest
Posts: n/a
 
      20th Apr 2007
Thanks for the reply.
Yes i can MANUALLY change the Locked Cells to Not be able to be selected.
But i want to do this with code.
As i leave the workbook (Close it) and when i open it it reverts back to
Locked cells being able to be selected again.

Corey....
"Himani" <(E-Mail Removed)> wrote in message
news:2861F8FB-1A20-4C26-9ABD-(E-Mail Removed)...
> When you protect sheet, by default two options are selected and those
> options
> allow user to select locked cells.
>
> Go to Tools -> Protection -> Protect Sheet, in that you'l find list of
> options underneath "Allow all users of this worksheet to:" deselect
> following
> options from list
> 1. Select locked cells
> 2. Select unlocked cells
>
> Hope this helps !!!
>
> "Corey" wrote:
>
>> Currently use:
>>
>> ActiveSheet.protect DrawingObjects:=True, Contents:=True,
>> Scenarios:=False,
>> AllowFormattingCells:=True
>>
>>
>> It ALLOWS the user to Select LOCKED Cells still.
>>
>> How can i have the Cells that are LOCKED to NOT be ENABLED,
>>
>> Yet have them still able to Select UNLOCKED Cells and be able to Format
>> the Unlocked Cells too?
>>
>> Is there a :
>> LockedCellsSelect:=False ?
>>
>>
>> Corey....
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?SGltYW5p?=
Guest
Posts: n/a
 
      20th Apr 2007
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlNoSelection

"Coza" wrote:

> Thanks for the reply.
> Yes i can MANUALLY change the Locked Cells to Not be able to be selected.
> But i want to do this with code.
> As i leave the workbook (Close it) and when i open it it reverts back to
> Locked cells being able to be selected again.
>
> Corey....
> "Himani" <(E-Mail Removed)> wrote in message
> news:2861F8FB-1A20-4C26-9ABD-(E-Mail Removed)...
> > When you protect sheet, by default two options are selected and those
> > options
> > allow user to select locked cells.
> >
> > Go to Tools -> Protection -> Protect Sheet, in that you'l find list of
> > options underneath "Allow all users of this worksheet to:" deselect
> > following
> > options from list
> > 1. Select locked cells
> > 2. Select unlocked cells
> >
> > Hope this helps !!!
> >
> > "Corey" wrote:
> >
> >> Currently use:
> >>
> >> ActiveSheet.protect DrawingObjects:=True, Contents:=True,
> >> Scenarios:=False,
> >> AllowFormattingCells:=True
> >>
> >>
> >> It ALLOWS the user to Select LOCKED Cells still.
> >>
> >> How can i have the Cells that are LOCKED to NOT be ENABLED,
> >>
> >> Yet have them still able to Select UNLOCKED Cells and be able to Format
> >> the Unlocked Cells too?
> >>
> >> Is there a :
> >> LockedCellsSelect:=False ?
> >>
> >>
> >> Corey....
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      20th Apr 2007
Or
.EnableSelection = xlUnlockedCells

Excel won't remember these settings after you close it and reopen the workbook
(so put it in your auto_open or workbook_open procedure)

Himani wrote:
>
> ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
> ActiveSheet.EnableSelection = xlNoSelection
>
> "Coza" wrote:
>
> > Thanks for the reply.
> > Yes i can MANUALLY change the Locked Cells to Not be able to be selected.
> > But i want to do this with code.
> > As i leave the workbook (Close it) and when i open it it reverts back to
> > Locked cells being able to be selected again.
> >
> > Corey....
> > "Himani" <(E-Mail Removed)> wrote in message
> > news:2861F8FB-1A20-4C26-9ABD-(E-Mail Removed)...
> > > When you protect sheet, by default two options are selected and those
> > > options
> > > allow user to select locked cells.
> > >
> > > Go to Tools -> Protection -> Protect Sheet, in that you'l find list of
> > > options underneath "Allow all users of this worksheet to:" deselect
> > > following
> > > options from list
> > > 1. Select locked cells
> > > 2. Select unlocked cells
> > >
> > > Hope this helps !!!
> > >
> > > "Corey" wrote:
> > >
> > >> Currently use:
> > >>
> > >> ActiveSheet.protect DrawingObjects:=True, Contents:=True,
> > >> Scenarios:=False,
> > >> AllowFormattingCells:=True
> > >>
> > >>
> > >> It ALLOWS the user to Select LOCKED Cells still.
> > >>
> > >> How can i have the Cells that are LOCKED to NOT be ENABLED,
> > >>
> > >> Yet have them still able to Select UNLOCKED Cells and be able to Format
> > >> the Unlocked Cells too?
> > >>
> > >> Is there a :
> > >> LockedCellsSelect:=False ?
> > >>
> > >>
> > >> Corey....
> > >>
> > >>
> > >>

> >
> >
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!) Microsoft Excel Misc 4 30th Dec 2009 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Microsoft Excel Setup 0 29th Dec 2009 06:50 AM
sheet protection =?Utf-8?B?YWltZWU=?= Microsoft Excel Worksheet Functions 2 28th Jun 2005 04:13 PM
Re: Sheet Protection DejaVu Microsoft Excel Programming 0 25th May 2005 04:36 PM
Sheet protection error msg - Unrequested sheet activation deltree Microsoft Excel Programming 0 28th Jan 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


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