Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ALK
 
Posts: n/a
Default Protection & Grouping

Super info! This solved the problem for me and works well with other macro
code. Thanks Dave.

"Dave Peterson" wrote:

I use xl2002 and there's an option to "use Autofilter"--but nothing for
grouping.

You can protect the worksheet in code:

But this setting isn't remembered between closing/reopening the workbook. (So
Auto_open is a nice spot for it.)

Option Explicit
Sub auto_open()

Dim wks As Worksheet
Set wks = Worksheets("sheet1")

With wks
.Protect Password:="hi", userinterfaceonly:=True
.EnableAutoFilter = True
'or
.EnableOutlining = True
End With

End Sub

EnableAutofilter/enableoutlining--depending on what you mean by grouped.

And autofilter or the outlining has to be applied beforehand.

0013 wrote:

Sorry, forgot to mention that I was talking about in 2003.

Even when I check all of the check boxes in the sheet protection dialog, I
still get an error.

Any ideas? Even if it's through VBA?

"Frank Kabel" wrote:

Hi
depending on your Excel version (I think starting in 2003) you can set
these option in the protection dialog

--
Regards
Frank Kabel
Frankfurt, Germany


0013 wrote:
Is there any way to protect a sheet, but still allow people to group
and ungroup rows and columns?

Thanks,



--

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
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
VBA code error with Protection turned on - help please Fred Excel Discussion (Misc queries) 1 March 17th 06 04:06 PM
An FAQ that never seems to be answered: autofiltering with protection on... JLC Excel Worksheet Functions 1 December 7th 05 06:14 AM
Sheet Protection - Grouping carlyman Excel Discussion (Misc queries) 3 September 22nd 05 11:43 PM
workbook protection John New Users to Excel 1 January 22nd 05 12:55 PM


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