Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default can I protect a worksheet but allow use of groupings (eg rows)

the topic says it all. When I protect a range of cells ina ny workbook excel
prevents use of the groupings feature. How do I get around this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default can I protect a worksheet but allow use of groupings (eg rows)

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
If .FilterMode Then
.ShowAllData
End If
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

Mike in Melbourne wrote:

the topic says it all. When I protect a range of cells ina ny workbook excel
prevents use of the groupings feature. How do I get around this?


--

Dave Peterson
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
Excel should allow tab groupings. Bassam Abdul-Baki Excel Discussion (Misc queries) 11 June 3rd 06 07:04 AM
Subtotals/Groupings Gary Excel Worksheet Functions 0 May 9th 06 12:52 PM
To allow edit of particular rows and protect other rows from editi DHANRAJ Excel Discussion (Misc queries) 2 March 30th 06 12:33 PM
Groupings within PivotTables Fred Excel Worksheet Functions 1 October 18th 05 11:45 PM
Protect Worksheet but allow to insert or delete rows Bob L Hilliard Excel Discussion (Misc queries) 2 June 9th 05 02:08 PM


All times are GMT +1. The time now is 02:34 AM.

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"