WebDec 10, 2012 · Here are samples that collapse all groups to level 1 or expand all groups to whatever level is required: You haven't told us how you grouped the data, using the Data, Group Command, using the Pivot Table Group feature, or using the Subtotal command or something else. I have tested the following for manual groupings. Sub CollapseAll ... WebActiveSheet.Outline.ShowLevels RowLevels:=1, ColumnLevels:=1 . VBA Coding Made Easy Stop searching for VBA code online. Learn more about AutoMacro - A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!
Outline.ShowLevels Event and Value - Excel General - OzGrid Free …
WebJun 30, 2008 · I want to see if the sheet as a whole is in the position as if the [2] button at the top left was pressed, expanding all of them. If yes then I would do something like: ActiveSheet.Outline.ShowLe vels RowLevels:=1 If not then: ActiveSheet.Outline.ShowLe vels … WebJul 11, 2006 · Displays the specified number of row and/or column levels of an outline. expression **.ShowLevels ( RowLevels **, ColumnLevels) expression Required. An … resto super besse
How to expand or close all group rows and columns in Excel? - ExtendOffice
WebSub ShowLevels( _ Optional Where As Range = Nothing, _ Optional ByVal RowLevels As Integer = 0, _ Optional ByVal ColumnLevels As Integer = 0, _ Optional ByVal HideLevels As Boolean = False) 'Toggles individual outline levels 'Note: ' On protected sheets you must allow format rows/columns! WebMar 1, 2024 · ActiveSheet.Outline.ShowLevels RowLevels:=2, ColumnLevels:=3 Else ActiveSheet.Outline.ShowLevels RowLevels:=0, ColumnLevels:=0 End If End Sub# Thanks Raju Last edited by rajuganapathy; 03-01-2024 at 10:47 AM . Reason: Solved Register To Reply 02-29-2024, 12:41 PM #2 Richard Buttrey Forum Moderator - RIP Join Date 01-14 … WebApr 1, 2013 · If ActiveSheet.Outline.ShowLevels (RowLevels:=0, ColumnLevels:=1) Then but this will not return the info about the outline level set. with ShowLevels you can only set the level but not read the number of levels of outline on a specific row you will get with Code debug.print Rows (ActiveCell.Row).OutlineLevel prp hair treatment cost nyc