Solved

Expand all column in Excel

Posted on 2014-10-07
7
81 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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…
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

815 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

11 Experts available now in Live!

Get 1:1 Help Now