Solved

Expand all column in Excel

Posted on 2014-10-07
7
77 Views
Last Modified: 2014-10-22
Is there a way to expand all collapsed cell in Excel by default ?

Tks
0
Comment
Question by:AXISHK
7 Comments
 
LVL 15

Expert Comment

by:WalkaboutTigger
ID: 40367454
Do you mean unhide all columns and rows or expand all columns to the width of their content or something similar?
0
 
LVL 13

Expert Comment

by:akb
ID: 40367494
Quick way is to press Ctrl-A to select entire worksheet. Then double click on a vertical line between the column headings. This will auto expand the columns to the required width.
0
 

Author Comment

by:AXISHK
ID: 40367522
I mean the grouped column. Pls refer to my attachment, Tks
Result1.png
Result2.png
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:AXISHK
ID: 40367533
Just wonder whether it is possible to modify the field on the existing silcer, rather than remove and create a new one. Tks
Result1.png
Result2.png
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 40367805
Assuming you mean for a pivot table, you could use something like this:

Sub ExpandAll()
    Dim pf                    As PivotField
    Dim pfs                   As PivotFields
    
    Set pfs = ActiveSheet.PivotTables(1).RowFields
    For Each pf In pfs
        If pf.Position < pfs.Count Then pf.ShowDetail = True
    Next pf
    Set pfs = ActiveSheet.PivotTables(1).ColumnFields
    For Each pf In pfs
        If pf.Position < pfs.Count Then pf.ShowDetail = True
    Next pf

End Sub

Open in new window

0
 
LVL 31

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40368153
On the Data Tab there should be a Sort & Filter group. In that group there is the large funnel button to apply a filter, there should also be a smaller one with Clear next to it. This will clear all filter settings on the current sheet.

Thanks
Rob H
0
 

Author Closing Comment

by:AXISHK
ID: 40398490
tks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

706 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

12 Experts available now in Live!

Get 1:1 Help Now