Showing Detail Only of an Excel OutlineLast reviewed: November 2, 1994Article ID: Q68631 |
SUMMARYMicrosoft Excel's outlining feature does not allow you to show only detail items when hiding summary data. However, this function can be performed by a macro.
MORE INFORMATIONThe following macro demands a number input from you, and then displays only those rows in the worksheet that are at that level of outlining. All other items will be hidden.
A1: =SET.NAME("Level",INPUT("Level to show",1)) A2: =SELECT.LAST.CELL() A3: =SET.NAME("Maxrow",ROW(ACTIVE.CELL())) A4: =SELECT("r1c1") A5: =FOR("count",1,Maxrow) A6: =GET.CELL(28,ACTIVE.CELL()) A7: =IF(A6<>Level,ROW.HEIGHT(,ACTIVE.CELL(),FALSE,1), ROW.HEIGHT(,ACTIVE.CELL(),,2)) A8: =SELECT("r[1]c") A9: =NEXT() A10: =RETURN()To make the macro work on columns instead of rows, the following modifications have to be made:
A3: =SET.NAME("Maxrow",COLUMN(ACTIVE.CELL())) A6: =GET.CELL(29,ACTIVE.CELL()) A7: =IF(A6<>Level,COLUMN.WIDTH(,ACTIVE.CELL(),FALSE,1), COLUMN.WIDTH(,ACTIVE.CELL(),,2)) A8: =SELECT("rc[1]") REFERENCES"Microsoft Excel Function Reference." Pages 201-202. "Microsoft Excel Function Reference." Pages 103-104.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |