Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bob Laithwaite
 
Posts: n/a
Default How to unprotect Grouping controls

As soon as I protect a worksheet/workbook the +/- grouping controls I've
created are protected.
How do I protect most of the sheet, but allow these expand/contract grouping
controls to operate normally?
  #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
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

Bob Laithwaite wrote:

As soon as I protect a worksheet/workbook the +/- grouping controls I've
created are protected.
How do I protect most of the sheet, but allow these expand/contract grouping
controls to operate normally?


--

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
grouping of cells in protected sheets Christian Galbavy Excel Worksheet Functions 1 May 10th 05 12:32 AM
After installing Office XP SP3, Excel ActiveX controls are moved a RJR Excel Discussion (Misc queries) 2 March 19th 05 05:54 PM
Date Format Pivot Grouping Easton Excel Discussion (Misc queries) 1 March 8th 05 12:53 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM
controls look strange after install of 2003 ben Excel Discussion (Misc queries) 0 January 17th 05 05:15 PM


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