Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 298
Default Grouping and Outlining in Excel using sheet protection

I have groups in my Spreadsheet. BUT, I'd also like to protect while allowing
other users to "Show Detail" and fill in some of the cells.

Is it possible to protect a Worksheet and allow users to expand groups and
make changes?

Thank you . . .
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Grouping and Outlining in Excel using sheet protection

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, but that
won't help when you're filtering via code.)

Rich wrote:

I have groups in my Spreadsheet. BUT, I'd also like to protect while allowing
other users to "Show Detail" and fill in some of the cells.

Is it possible to protect a Worksheet and allow users to expand groups and
make changes?

Thank you . . .


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 298
Default Grouping and Outlining in Excel using sheet protection

Thank you very much Dave . . . it worked like a charm. (And, although my know
of VBA is very limited, I understand it!)

Thanks again!

Rich

"Dave Peterson" wrote:

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, but that
won't help when you're filtering via code.)

Rich wrote:

I have groups in my Spreadsheet. BUT, I'd also like to protect while allowing
other users to "Show Detail" and fill in some of the cells.

Is it possible to protect a Worksheet and allow users to expand groups and
make changes?

Thank you . . .


--

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
protection and grouping TommyD Setting up and Configuration of Excel 1 May 9th 08 10:27 PM
outlining / Grouping AFREP Excel Discussion (Misc queries) 1 August 17th 06 11:10 PM
Outlining in Protected Sheet - Attention DP Chiku Excel Discussion (Misc queries) 3 December 15th 05 03:28 PM
Sheet Protection - Grouping carlyman Excel Discussion (Misc queries) 3 September 22nd 05 11:43 PM
Excel grouping & protection Smokey Mike Setting up and Configuration of Excel 1 February 12th 05 03:31 AM


All times are GMT +1. The time now is 10:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"