Group:  Microsoft Excel ยป microsoft.public.excel.newusers
Thread: newbie protection question

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

newbie protection question
John <JOhn6328[ at ]mchsi.com> 05.07.2006 19:23:38
How do I pretect sheets in such a way that users can input data but
can't change formulas, macros etc?

Thanks
John
Re: newbie protection question
Bearacade <Bearacade.2ahm4d_1152128104.8732[ at ]excelforum-nospam.com> 05.07.2006 19:33:08
Make sure the cells you want your user to be ABLE to edit are unlocked. You do that by rightclicking, Format Cells, Protection and make sure the Locked option is unchecked.

Then you go to your menu bar, Tools, Protection, Protect Sheet.

Notice, if there are formulas you would like to hide, you can do what was described above and this time, Check Hidden -- Bearacade ------------------------------------------------------------------------ Bearacade's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=35016 View this thread: http://www.excelforum.com/showthread.php?threadid=558613
Re: newbie protection question
"Nick Hodge" <nick_hodgeTAKETHISOUT[ at ]zen.co.uk.ANDTHIS> 05.07.2006 19:34:19
John

On macros you can set up protection for them in the VBE (Alt+F11), for other
things it is a two-stage process. All Excel cells are 'locked' by default,
but this is ignored until the sheet is protected.

Highlight the cells you want users to input into (You can highlight multiple
cells by Ctrl+Click) and now, with these highlighted go to
Format>Cells...>Protection and deselect 'locked', now protect the sheet
(Tools>Protection>Protect Sheet...) and these cells will be 'un-locked' and
entry enabled

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
nick_hodgeTAKETHISOUT[ at ]zen.co.uk.ANDTHIS


"John" <JOhn6328[ at ]mchsi.com> wrote in message
news:uxAhEiGoGHA.4192[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> How do I pretect sheets in such a way that users can input data but can't
> change formulas, macros etc?
>
> Thanks
> John


RE: newbie protection question
Sloth 05.07.2006 19:35:01
All cells are protected by default.

To unprotect a cell:
Right click the cells in question, and click "format cells"
Goto the Protection tab and deselect "Locked"
Now when you protect the sheet (tools->protection), the individual cell can
still be changed.

I don't think there is a way to protect macros, but I might be wrong.

Sloth July 2006

"John" wrote:

[Quoted Text]
> How do I pretect sheets in such a way that users can input data but
> can't change formulas, macros etc?
>
> Thanks
> John
>
Re: newbie protection question
keithl816 <keithl816.2ahmcp_1152128410.662[ at ]excelforum-nospam.com> 05.07.2006 19:35:17
Hi John,

Highlight all the areas that you want the user to enter data,

go to Format|cells|protection| remove the checkmark from the lock box

then go to Tools|protection|protect sheet| remove the checkmark in the select locked cells box and enter a password.

Hope this helps

Larry -- keithl816 ------------------------------------------------------------------------ keithl816's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=21287 View this thread: http://www.excelforum.com/showthread.php?threadid=558613
Re: newbie protection question
John <JOhn6328[ at ]mchsi.com> 06.07.2006 03:31:47
Thanks. Is there a way to protect multiple sheets? The protect workbook
doesn't seem to do it. What does protect workbook do?
Thanks again

John

Nick Hodge wrote:
[Quoted Text]
> John
>
> On macros you can set up protection for them in the VBE (Alt+F11), for other
> things it is a two-stage process. All Excel cells are 'locked' by default,
> but this is ignored until the sheet is protected.
>
> Highlight the cells you want users to input into (You can highlight multiple
> cells by Ctrl+Click) and now, with these highlighted go to
> Format>Cells...>Protection and deselect 'locked', now protect the sheet
> (Tools>Protection>Protect Sheet...) and these cells will be 'un-locked' and
> entry enabled
>
Re: newbie protection question
"Nick Hodge" <nick_hodgeTAKETHISOUT[ at ]zen.co.uk.ANDTHIS> 06.07.2006 06:18:41
John

Just repeat the instructions on each sheet

Workbook protection prevents the user from opening/editing the file at all
without the password. Worksheet protection allows the user to see the data
and interact with areas allowed by the creator

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
nick_hodgeTAKETHISOUT[ at ]zen.co.uk.ANDTHIS


"John" <JOhn6328[ at ]mchsi.com> wrote in message
news:%23JTo1yKoGHA.4864[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> Thanks. Is there a way to protect multiple sheets? The protect workbook
> doesn't seem to do it. What does protect workbook do?
> Thanks again
>
> John
>
> Nick Hodge wrote:
>> John
>>
>> On macros you can set up protection for them in the VBE (Alt+F11), for
>> other things it is a two-stage process. All Excel cells are 'locked' by
>> default, but this is ignored until the sheet is protected.
>>
>> Highlight the cells you want users to input into (You can highlight
>> multiple cells by Ctrl+Click) and now, with these highlighted go to
>> Format>Cells...>Protection and deselect 'locked', now protect the sheet
>> (Tools>Protection>Protect Sheet...) and these cells will be 'un-locked'
>> and entry enabled
>>


Re: newbie protection question
John <JOhn6328[ at ]mchsi.com> 06.07.2006 13:19:10
Jeez... there is 60+ sheets. Should be an easier way.

John


Nick Hodge wrote:

[Quoted Text]
> John
>
> Just repeat the instructions on each sheet
>
> Workbook protection prevents the user from opening/editing the file at all
> without the password. Worksheet protection allows the user to see the data
> and interact with areas allowed by the creator
>
Re: newbie protection question
Gord Dibben <gorddibbATshawDOTca> 06.07.2006 14:57:35
Nick

Workbook Protection is not the same as File Open protection.

Workbook protection disables such features as deleting sheets, changing window
sizes.


Gord Dibben MS Excel MVP


On Thu, 6 Jul 2006 07:18:41 +0100, "Nick Hodge"
<nick_hodgeTAKETHISOUT[ at ]zen.co.uk.ANDTHIS> wrote:

[Quoted Text]
>John
>
>Just repeat the instructions on each sheet
>
>Workbook protection prevents the user from opening/editing the file at all
>without the password. Worksheet protection allows the user to see the data
>and interact with areas allowed by the creator

Re: newbie protection question
Gord Dibben <gorddibbATshawDOTca> 06.07.2006 14:58:45
John

You can do it with a macro.

Sub ProtectAllSheets()
Application.ScreenUpdating = False
Dim n As Single
For n = 1 To Sheets.Count
Sheets(n).Protect Password:="justme"
Next n
Application.ScreenUpdating = True
End Sub

Sub UnprotectAllSheets()
Application.ScreenUpdating = False
Dim n As Single
For n = 1 To Sheets.Count
Sheets(n).Unprotect Password:="justme"
Next n
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Thu, 06 Jul 2006 08:19:10 -0500, John <JOhn6328[ at ]mchsi.com> wrote:

[Quoted Text]
>Jeez... there is 60+ sheets. Should be an easier way.
>
>John
>
>
>Nick Hodge wrote:
>
>> John
>>
>> Just repeat the instructions on each sheet
>>
>> Workbook protection prevents the user from opening/editing the file at all
>> without the password. Worksheet protection allows the user to see the data
>> and interact with areas allowed by the creator
>>

Re: newbie protection question
John <JOhn6328[ at ]mchsi.com> 06.07.2006 18:49:39
Perfect thanks you
John

Gord Dibben wrote:
[Quoted Text]
> John
>
> You can do it with a macro.
>
> Sub ProtectAllSheets()
> Application.ScreenUpdating = False
> Dim n As Single
> For n = 1 To Sheets.Count
> Sheets(n).Protect Password:="justme"
> Next n
> Application.ScreenUpdating = True
> End Sub
>
> Sub UnprotectAllSheets()
> Application.ScreenUpdating = False
> Dim n As Single
> For n = 1 To Sheets.Count
> Sheets(n).Unprotect Password:="justme"
> Next n
> Application.ScreenUpdating = True
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Thu, 06 Jul 2006 08:19:10 -0500, John <JOhn6328[ at ]mchsi.com> wrote:
>
>
>>Jeez... there is 60+ sheets. Should be an easier way.
>>
>>John
>>
>>
>>Nick Hodge wrote:
>>
>>
>>>John
>>>
>>>Just repeat the instructions on each sheet
>>>
>>>Workbook protection prevents the user from opening/editing the file at all
>>>without the password. Worksheet protection allows the user to see the data
>>>and interact with areas allowed by the creator
>>>
>
>
RE: newbie protection question
JLatham 08.07.2006 02:09:01
To keep people from changing your macro code you have to protect the VB
project. To do that, when in the VB Editor (use [Alt]+[F11] to get there)
choose Tools | VBAProject Properties and then use the settings on the
[Protection] tab to keep people out of there.

"John" wrote:

[Quoted Text]
> How do I pretect sheets in such a way that users can input data but
> can't change formulas, macros etc?
>
> Thanks
> John
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net