Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Protect sheet but still allow use of grouping

Hello all,
I have created a spreadsheet and used the grouping feature within it. I
would like to protect my formulas so that they cannot be edited and
still allow people to expand and contract the different groups. As soon
as I protect the sheet it seems as though I can no longer expand and
contact these areas. Is there any way to allow this expansion and
contraction while still protecting my formulas?
Thanks Terry

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Protect sheet but still allow use of grouping

The short answer is no you can not expand / contract groups on a protected
sheet. The only thing I can recommend is to add some code that protects and
unprotects the sheet based on the contents of the currently selected cell.
Something like this...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Left(Target.Formula, 1) = "=" Or Target.Count 1 Then
ActiveSheet.Protect
Else
ActiveSheet.Unprotect
End If
End Sub

It is not perfect but it might work for you in a pinch...
--
HTH...

Jim Thomlinson


"Terry K" wrote:

Hello all,
I have created a spreadsheet and used the grouping feature within it. I
would like to protect my formulas so that they cannot be edited and
still allow people to expand and contract the different groups. As soon
as I protect the sheet it seems as though I can no longer expand and
contact these areas. Is there any way to allow this expansion and
contraction while still protecting my formulas?
Thanks Terry


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Protect sheet but still allow use of grouping

Thank you very much Jim.
That was pretty much wat I figured. The unfortunate part is that I have
to do it with out the use of macros. I have just done away with the
grouping (Not very nice looking but at least the formulas are safe <:))
The lesser of the two evils right?
Thanks Terry

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Protect sheet but still allow use of grouping

If your grouping ws created using the automated subtotal feature you might be
able to switch to a pivot table instead (just a thought). The users can not
overwrite the pivot table data.
--
HTH...

Jim Thomlinson


"Terry K" wrote:

Thank you very much Jim.
That was pretty much wat I figured. The unfortunate part is that I have
to do it with out the use of macros. I have just done away with the
grouping (Not very nice looking but at least the formulas are safe <:))
The lesser of the two evils right?
Thanks Terry


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 to protect sheet allowing grouping and ungrouping but alsoallowing changing colour of specific cells Anurag Kothari Excel Discussion (Misc queries) 2 October 13th 09 02:29 PM
Am I able to protect my work sheet and keep my grouping function? Djana Excel Worksheet Functions 1 May 31st 06 01:44 AM
How to protect sheet but allow grouping to work dwsmha Excel Worksheet Functions 1 August 30th 05 12:53 AM
Protect sheet and allow grouping of columns Job Excel Worksheet Functions 2 May 6th 05 01:44 PM
Can I use the grouping and lock and protect cells bfisher Excel Discussion (Misc queries) 1 January 11th 05 10:55 PM


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

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"