PC Review


Reply
Thread Tools Rate Thread

Grouping and Protection

 
 
=?Utf-8?B?VG9ueSBCZXRsZXk=?=
Guest
Posts: n/a
 
      28th Mar 2007
I need to use grouping on a spreadsheet (Excel 2003). Having designed the
spreadsheet which uses grouping I then want to protect it but in doing so it
stops users showing and hiding the groups.
I have tried variuos options within the protect sheet dialog box but to no
avail.
Any assistance appreciated.
Thanks
tony

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      28th Mar 2007
If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
.EnableOutlining = True
'.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the allow autofilter setting under tools|Protection|protect sheet.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Tony Betley wrote:
>
> I need to use grouping on a spreadsheet (Excel 2003). Having designed the
> spreadsheet which uses grouping I then want to protect it but in doing so it
> stops users showing and hiding the groups.
> I have tried variuos options within the protect sheet dialog box but to no
> avail.
> Any assistance appreciated.
> Thanks
> tony


--

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
Re: Protection / Grouping Paul W Smith Microsoft Excel Discussion 0 27th Mar 2010 07:56 PM
Protection and grouping horst Microsoft Excel Discussion 2 14th Apr 2009 04:09 PM
protection and grouping TommyD Microsoft Excel Setup 0 20th Mar 2008 09:24 PM
Protection & Grouping =?Utf-8?B?MDAxMw==?= Microsoft Excel Misc 4 4th May 2006 03:45 PM
Protection and Grouping =?Utf-8?B?YmlnIHQ=?= Microsoft Excel Programming 6 28th Jul 2005 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:55 PM.