![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Mar 2004
Posts: 1
|
Hi, I need to protect a workbook, so staff can only enter data in certain cells. At the same time I want to set up outlining and let staff use the outlining to collapse and expand the workbook. Once it is locked though, Excel will not let them use outlining anymore.
|
|
|
|
|
|
#2 |
|
Join Date: Apr 2002
Posts: 2,314
|
Hi, Welcome to the board.
You can do this with this macro, just change the sheet name... Code:
Sub Outline_Protect()
'Allows Outining while sheet protected
'Change Sheet name (twice)
Sheet3.EnableOutlining = True
Sheet3.Protect Contents:=True, UserInterfaceOnly:=True
End Sub
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|