Created
November 20, 2018 12:37
-
-
Save ndthanh/10d1f1d0a972f047fff67bb83202777b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub un_group_data() | |
With Sheet1 | |
On Error Resume Next | |
' expand all groups on sheet | |
.Outline.ShowLevels RowLevels:=8 | |
' remove any existing groups | |
.Rows.Ungroup | |
On Error GoTo 0 | |
End with | |
end sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment