Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
BorisS
 
Posts: n/a
Default protected sheets and hidden rows

does anyone know of a way to protect a sheet for minimum protection (no
locked cell entries), but to still allow a user to hide/unhide using the
groupings that are set up in a sheet? I use grouping extensively in sheets,
and find it frustrating to not be able to lock my sheets for protecting
entries, without shutting off the grouping functionality when it's locked.


--
Boris
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default protected sheets and hidden rows

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


BorisS wrote:

does anyone know of a way to protect a sheet for minimum protection (no
locked cell entries), but to still allow a user to hide/unhide using the
groupings that are set up in a sheet? I use grouping extensively in sheets,
and find it frustrating to not be able to lock my sheets for protecting
entries, without shutting off the grouping functionality when it's locked.

--
Boris


--

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
Macro and hidden sheets Metallo Excel Discussion (Misc queries) 7 January 19th 06 09:33 AM
hidden rows in Excel David Excel Discussion (Misc queries) 6 October 28th 05 05:13 PM
Open hidden sheets from a drop down list selection Ant Excel Discussion (Misc queries) 3 October 7th 05 10:01 AM
hidden rows & columns slow file open Simon Shaw Excel Discussion (Misc queries) 0 April 5th 05 12:21 AM
Insert rows Mr. G. Excel Worksheet Functions 3 March 31st 05 03:49 AM


All times are GMT +1. The time now is 01:20 AM.

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"