MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 01:33 PM   #1
chell
 
Join Date: Mar 2004
Posts: 1
Default Outlining protectd Workbook

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. any suggestions?
chell is offline   Reply With Quote
Old Mar 30th, 2004, 01:44 PM   #2
jimboy
 
Join Date: Apr 2002
Posts: 2,314
Default Re: Outlining protectd Workbook

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
jimboy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.