PC Review


Reply
Thread Tools Rate Thread

Can I protect a document and still open / close groups

 
 
=?Utf-8?B?UGF1bA==?=
Guest
Posts: n/a
 
      25th Sep 2006
I have a document that contains rows in a group. When I have my sheet
protected, I am unable to open the group if it is minimized and unable to
close the group if it is maximized. Is it possible to open and minimize a
grouping when a sheet is protected.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      25th Sep 2006
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. (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

Paul wrote:
>
> I have a document that contains rows in a group. When I have my sheet
> protected, I am unable to open the group if it is minimized and unable to
> close the group if it is maximized. Is it possible to open and minimize a
> grouping when a sheet is protected.


--

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
Auto-Protect Sheet on Open and on Close ryguy7272 Microsoft Excel Programming 3 6th Oct 2009 07:00 PM
New Document, Close Document, Open Document BUTTONS... =?Utf-8?B?QWxlcw==?= Microsoft Word Document Management 1 3rd Jun 2006 03:34 AM
Password protect content editing vs. password protect open document ?? Camille Petersen Microsoft Word Document Management 1 3rd May 2006 01:25 PM
Password protect content editing vs. password protect open document ?? Camille Petersen Microsoft Word New Users 1 3rd May 2006 01:25 PM
Protect Document on Open Karen Microsoft Word Document Management 1 11th Jan 2005 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 AM.