Solved

Excel 2007: How to allow expanding/collapsing of grouped columns/rows when the sheet is protected?

Posted on 2008-09-30
5
6,745 Views
Last Modified: 2012-08-14
Hi, I group a few columns together in a worksheet.  I can expand the columns by clicking on "+" button and collapse them again with the "-" button.  However, this is not allow when I protect the sheet.  I want to be able to expand and collapse while protecting some cells in the worksheet.
0
Comment
Question by:JCJG
5 Comments
 
LVL 10

Accepted Solution

by:
pkhari earned 250 total points
Comment Utility
Hi

It is not possible to allow grouping / ungrouping of cells when the sheet is protected. You can achieve this only by leaving the sheet unprotected or by handling the whole thing through VBA Code.

Cheers
P.K.
0
 

Author Closing Comment

by:JCJG
Comment Utility
Thanks.
0
 
LVL 1

Expert Comment

by:hlinap
Comment Utility
Hello,

fortunatelly that's not really true. It is possible, see:

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_21680434.html?sfQueryTermInfo=1+excel+expand+how+protect+when

It uses a VBA trick. I've tested it on Excel 2000 and it works fine. To make it work you may need close and re-open the workbook afterwards.

Perhaps, in some newer version of Excel, this would be an checkbox option when you protecting a worksheet manually from Excel's menu.

Cheers
Hlina
0
 
LVL 1

Expert Comment

by:hlinap
Comment Utility
Hello,

pkhari: oh, you wrote that it is possible through VBA code. I didn't notice this. My apologies!

So, please, consider my previous comment as just a link to the VBA code.

Regards,
Hlina
0
 

Expert Comment

by:cemathwig
Comment Utility
Regarding Excel 2007: How to allow expanding/collapsing of grouped columns/rows when the sheet is protected?

A question/solution (highly rated) was posted:
Hi, I group a few columns together in a worksheet.  I can expand the columns by clicking on "+" button and collapse them again with the "-" button.  However, this is not allow when I protect the sheet.  I want to be able to expand and collapse while protecting some cells in the worksheet.

I want to do similar, but with rows. The VBA solution (and others similar that I have tried) do not work. No amount of VBA appears to work, even with macros enabled. I'm not sure what I'm doing wrong. Any other solutions??
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article shows how to simulate drawing numbers or names from a hat or bag using vba in PowerPoint and prevents duplicate items being selected. It’s not difficult to choose a (semi) random number in vba. The RND function returns a decimal numb…
Setting the Scene Animations in PowerPoint are a great tool to convey messages when used carefuly with the content of your slides. There are plenty of animation effects and options, including a Repeat feature for individual animation effects. …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now