Quantcast
Channel: SCN : Unanswered Discussions - Supply Chain Management (SAP SCM)
Viewing all articles
Browse latest Browse all 5579

Using Group/Ungroup in protected worksheets

$
0
0

Hi all,

 

We have a requirement that all the cells that are not editable to be locked.

We found a nice way to have this done: from EPMFormattingSheet we Locked Selected Cells for the Default Format while the Inputable member remained unlocked.


The issue is that once the Worksheet is protected user is no longer able to use Group / Ungroup which is required to hide / unhide the chart from the top of the planning view.

In an usual excel workbook this can be solved by writing a VBA procedure in the Open event of the workbook -> so that macro runs each time you open the workbook.


I have added below VBA but, unfortunately, I must run it manually each time I open the planning view...

Does anyone know how could we integrate these type of macros with S&OP Planning Views?


 

Private Sub Workbook_Open()

With Worksheets("PlanningView")

       .Protect Password:="password", Userinterfaceonly:=True

       .EnableOutlining = True

End With

End Sub

 

I have also tried with Worksheet_Activate(), same result.

 

Thank you,

Alecsandra


Viewing all articles
Browse latest Browse all 5579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>