Solved

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

Posted on 2008-09-30
5
6,767 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
ID: 22616464
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
ID: 31501870
Thanks.
0
 
LVL 1

Expert Comment

by:hlinap
ID: 23361635
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
ID: 23361766
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
ID: 26361819
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In all recent versions of PowerPoint it is possible to trigger animations. This means the animation takes place when a certain shape is clicked. This allows you to run animation “on demand” and outwith the normal sequence of mouse cl…
PowerPoint is the go-to presentation software for millions of users around the world. Many presentations use basic text features but you can really make special text jump out of your slide by applying this bubble text design process. This article ha…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

821 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