Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Protection using the subtotal function

Is it possible to protect a worksheet and still be able to use the subtotal
(grouping and ungrouping) function in excel? I need to protect a document but
be able to allow others to group/ungroup the data. Can this be done? Thanks,
--
Scottm
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Protection using the subtotal function

Yes, it is possible with VBA. Copy the following code into a VBA module in
the workbook. Edit the sheet name ("Sheet1") and password ("hi") as
appropriate.

Option Explicit

Sub Auto_Open()
With Worksheets("Sheet1")
.Protect Password:="hi", UserInterfaceOnly:=True
.EnableSelection = xlNoSelection
.EnableOutlining = True
.EnableAutoFilter = True
End With
End Sub

Hope this helps,

Hutch

"Scottm" wrote:

Is it possible to protect a worksheet and still be able to use the subtotal
(grouping and ungrouping) function in excel? I need to protect a document but
be able to allow others to group/ungroup the data. Can this be done? Thanks,
--
Scottm

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
COUNTIF Subtotal Function? jcpotwor Excel Discussion (Misc queries) 2 January 12th 06 01:56 PM
Cannot Reference "Array" in Subtotal Function Jhcorsair Excel Worksheet Functions 0 January 7th 06 11:28 PM
Nested --- Subtotal IF function Lisa Beach Excel Worksheet Functions 3 November 23rd 05 07:58 PM
Subtotal function with Filtered Data RonB Excel Discussion (Misc queries) 3 August 12th 05 10:04 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 06:26 PM.

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"