Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Werner Rohrmoser
 
Posts: n/a
Default Grouping in a protected sheet

Hello,

Application: Excel XP SP2
OS: Win XP 5.1.2600 SP1

Is it possible to group and ungroup in a protected sheet.
I tried several approaches provided by the sheet protection dialog,
but I didn't succeed.

Hiding and unhiding rows is possible, even in a protected sheet,
and therefore I thought it should be possible to group and ungroup
in a protected sheet as well.

Regards
Werner

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you already have the outline 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

(I wasn't sure what caused your outlining--data|Group or Data|subtotals).)

It needs to be reset each time you open the workbook. (excel doesn't remember
it after closing the workbook.)

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

Werner Rohrmoser wrote:

Hello,

Application: Excel XP SP2
OS: Win XP 5.1.2600 SP1

Is it possible to group and ungroup in a protected sheet.
I tried several approaches provided by the sheet protection dialog,
but I didn't succeed.

Hiding and unhiding rows is possible, even in a protected sheet,
and therefore I thought it should be possible to group and ungroup
in a protected sheet as well.

Regards
Werner


--

Dave Peterson
  #3   Report Post  
Werner Rohrmoser
 
Posts: n/a
Default

Thanks a lot Dave,
your solution matches excatly my problem.

Werner

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
List, Data Validation, unlocked cell, protected sheet..... Kane New Users to Excel 6 July 16th 12 09:11 AM
Autofilter in protected sheet Javier Excel Worksheet Functions 5 March 24th 08 05:56 PM
refresh external data on a protected sheet ajf Excel Discussion (Misc queries) 0 March 11th 05 09:01 AM
password protected Sheet thrava Excel Discussion (Misc queries) 4 December 29th 04 07:54 PM
How to enable grouping in a protected sheet Ankur Excel Worksheet Functions 2 November 1st 04 07:52 PM


All times are GMT +1. The time now is 03:08 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"