Solved

Expand all column in Excel

Posted on 2014-10-07
7
80 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 32

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
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…

910 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

16 Experts available now in Live!

Get 1:1 Help Now