ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Locking cells but keeping Grouping Function available (https://www.excelbanter.com/excel-worksheet-functions/203370-locking-cells-but-keeping-grouping-function-available.html)

Cheriti

Locking cells but keeping Grouping Function available
 
I am trying to lock cells in a worksheet to protect the formulas but want the
users to still be able to use the grouping function already incorporated-
does anyone know how?

(I know how to lock only specific cells but when I do so it does not allow
the grouping function to expand or contract)

Thanks!

Gord Dibben

Locking cells but keeping Grouping Function available
 
Private Sub Worksheet_Activate()
With Me
.Protect Password:="justme", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code"

Copy/paste into that sheet module. Edit if desired the Alt + q to return to
the Excel window.


Gord Dibben MS Excel MVP

On Sun, 21 Sep 2008 19:49:01 -0700, Cheriti
wrote:

I am trying to lock cells in a worksheet to protect the formulas but want the
users to still be able to use the grouping function already incorporated-
does anyone know how?

(I know how to lock only specific cells but when I do so it does not allow
the grouping function to expand or contract)

Thanks!




All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com