Solved

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

Posted on 2008-09-30
5
6,827 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

627 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