Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how can I allow users to open groups in a protected worksheet?

I am trying to protect a worksheet which has a number of groups. When I
protect the worksheet in order to lock certain cells the users are unable to
open groups. Is there a way of achieving this?

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how can I allow users to open groups in a protected worksheet?


You could use Information Rights Management by clicking File,
Permission, Restrict Permission as...
This requires a server that Microsoft provides for the time being.


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=563646

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default how can I allow users to open groups in a protected worksheet?

Hi Victoria,
They won't be able to use groups when using regular protection. There is a
way around it by using some VBA that is executed when the workbook is opened.

In the VBA environment you need to select the Excel Object called 'This
Workbook' and then enter code like this:

Private Sub Workbook_Open()

Worksheets("Total").Select
ActiveSheet.Unprotect Password:="[your password - omit if no PW]"
With Worksheets(ActiveSheet.Name)
.Protect Password:="[your pword or null]", userinterfaceonly:=True
.EnableOutlining = True
End With

Worksheets("First").Select
ActiveSheet.Next.Select
Do Until ActiveSheet.Name = "Last"
ActiveSheet.Unprotect Password:="[your password - omit if no PW]"
With Worksheets(ActiveSheet.Name)
.Protect Password:="[your pword or null]", userinterfaceonly:=True
.EnableOutlining = True
End With
ActiveSheet.Next.Select
Loop

Worksheets("Functions").Select
End Sub


Essentially this code is executed when the workbook is opened then does 3
things
1. Selects the 'Total' sheet, unprotects it and then reprotects but enables
'outlining'
2. It then cycles through all sheets between 'First' and 'Last' repeating pt
1 on each sheet.
3. It returns the user to a predefined start sheet in the workbook:
'Functions'

This only takes a couple of seconds in a workbook with 15 sheets so is not
overly intrusive.

HTH Giz

"VictoriaB" wrote:

I am trying to protect a worksheet which has a number of groups. When I
protect the worksheet in order to lock certain cells the users are unable to
open groups. Is there a way of achieving this?

Many thanks

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
mail merging 2 workbooks??? Bubba Gump Excel Discussion (Misc queries) 21 August 7th 06 09:13 AM
Can't Get Objects To Work In A Protected Worksheet OMMBoy Excel Worksheet Functions 2 May 27th 06 06:28 PM
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
Dealing with worksheet groups Bob K Excel Worksheet Functions 0 October 19th 05 04:08 PM
How do I get my personal macro worksheet to open whenever I open . Claudia_R Excel Discussion (Misc queries) 3 December 9th 04 11:59 PM


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