Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

Protect sheet but hide rows?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FTM - 13 Mar 2007 19:34 GMT
Hello All,
I have a large spreadsheet that is used as a tool by many people, the
formula in the spreadsheet have to be protected to prevent them being
overwritten or deleted by users however I would like the users to be able to
hide or unhide rows/columns. When I use the protect worksheet function I
don't seem to be able to allow hide/unhide.
Any help very welcome!
Thanks
~*Amanda*~ - 13 Mar 2007 20:27 GMT
If the hiding and unhiding is to allow people to just see information that
pertains to them, the AutoFilter feature might work better for you.

> Hello All,
> I have a large spreadsheet that is used as a tool by many people, the
[quoted text clipped - 4 lines]
> Any help very welcome!
> Thanks
JLatham - 13 Mar 2007 21:49 GMT
What version of Excel are you using.  In Excel 2003 there is an option to
permit formatting Rows (and/or columns) which will permit the operations on a
protected sheet.  Not sure if 2002 (XP) had that option or not (I believe it
did), but 2000 and earlier do not have it.
If these are always the same rows to be hidden/revealed, then you could do
it with two macros - either attached to a button on the sheet or not; one to
unprotect the sheet, unhide the rows, protect it again; the other to
unprotect, hide, protect again.

But I"m betting that ~*Amanda*~ has the better idea.

> Hello All,
> I have a large spreadsheet that is used as a tool by many people, the
[quoted text clipped - 4 lines]
> Any help very welcome!
> Thanks
FTM - 14 Mar 2007 23:33 GMT
Thank you this option to allow formatting of rows/columns works perfectly!
(Auto filter is not applicable as the ablity to hide rows/columns is to
allow users to personalise their view rather than filter information.)

> What version of Excel are you using.  In Excel 2003 there is an option to
> permit formatting Rows (and/or columns) which will permit the operations on a
[quoted text clipped - 15 lines]
> > Any help very welcome!
> > Thanks
ianb - 27 Mar 2008 10:00 GMT
Quick question on this (sorry to hijack the discussion!).

will this unprotecting and then protecting again work if you have a password
used? obviously you don't want this to become common knowledge which I guess
could be the case if someone goes into the macro itself.

> What version of Excel are you using.  In Excel 2003 there is an option to
> permit formatting Rows (and/or columns) which will permit the operations on a
[quoted text clipped - 15 lines]
> > Any help very welcome!
> > Thanks
Gord Dibben - 27 Mar 2008 22:50 GMT
ActiveSheet.Unprotect Password:="justme"

do the things you do

ActiveSheet.Protect Password:="justme"

If you lock the priject for viewing, users cannot see the code ir the password.

Open VBE and right-click on your project/workbook and select
Properties>Protection>Lock project for viewing.

Give it a password then Save the workbook, close and re-open to see protection
is on that project.

Gord Dibben  MS Excel MVP

>Quick question on this (sorry to hijack the discussion!).
>
[quoted text clipped - 21 lines]
>> > Any help very welcome!
>> > Thanks
ianb - 29 Mar 2008 11:43 GMT
Perfect, thanks for your help!

Ian

> ActiveSheet.Unprotect Password:="justme"
>
[quoted text clipped - 37 lines]
> >> > Any help very welcome!
> >> > Thanks
Gord Dibben - 29 Mar 2008 17:24 GMT
Glad to help.

Gord

>Perfect, thanks for your help!
>
[quoted text clipped - 41 lines]
>> >> > Any help very welcome!
>> >> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.