Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Enable grouping in protected worksheet


I'm mainly working with Excel 2000, but I also noticed this is the sam
for 2003. When you protect a sheet that has grouped columns/rows, ther
is no option to enable "Group" and "Ungroup". Does anybody know how t
enable this feature to a protected sheet?

Thanks in advanc

--
malik64

-----------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...fo&userid=2419
View this thread: http://www.excelforum.com/showthread.php?threadid=40203

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Enable grouping in protected worksheet

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

malik641 wrote:

I'm mainly working with Excel 2000, but I also noticed this is the same
for 2003. When you protect a sheet that has grouped columns/rows, there
is no option to enable "Group" and "Ungroup". Does anybody know how to
enable this feature to a protected sheet?

Thanks in advance

--
malik641

------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=402039


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Enable grouping in protected worksheet


Dave,
I have the worksheets protected on a workbook_open event, I just didn'
know what the syntax was for enabling the Group featur
(.EnableOutlining = True)

Thanks a lot! And thanks for the link

--
malik64

-----------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...fo&userid=2419
View this thread: http://www.excelforum.com/showthread.php?threadid=40203

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
how to enable formula auditing in a protected worksheet? Theo Excel Worksheet Functions 2 January 13th 08 05:30 PM
Enable outlining in a protected worksheet johnb Excel Discussion (Misc queries) 8 October 12th 07 08:15 PM
How do I enable the spellchecker in a protected worksheet? Anne CFS Excel Programming 6 July 12th 07 11:12 PM
Enable grouping of rows in a protected sheet Luke Excel Discussion (Misc queries) 0 August 31st 06 06:59 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 06:05 PM.

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

About Us

"It's about Microsoft Excel"