Solved

Expand all column in Excel

Posted on 2014-10-07
7
82 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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 33

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dynamic Dependent Data Validation 12 44
Turn date into age 17 31
Text box keydown event does not work 38 39
How do you check for multiple possibilities in Excel 7 26
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…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

789 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