Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created November 20, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/10d1f1d0a972f047fff67bb83202777b to your computer and use it in GitHub Desktop.
Save ndthanh/10d1f1d0a972f047fff67bb83202777b to your computer and use it in GitHub Desktop.
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