adhoraji09
New Member
- Joined
- Aug 27, 2014
- Messages
- 2
Hello,
I am trying to run this macro to group and ungroup columns on multiple sheets. It seems to only be working on one sheet at a time. For example it works on tab net sales but then I have to run it again for trade tab. I would i make this macro work for both net sales and trade tab with one macro or click.
Sub MacroGroup()
ActiveSheet.Outline.ShowLevels ColumnLevels:=2
Columns("K:P").Columns.UnGroup
Columns("L:R").Columns.Group
ActiveSheet.Outline.ShowLevels ColumnLevels:=1
End Sub
Thanks.
I am trying to run this macro to group and ungroup columns on multiple sheets. It seems to only be working on one sheet at a time. For example it works on tab net sales but then I have to run it again for trade tab. I would i make this macro work for both net sales and trade tab with one macro or click.
Sub MacroGroup()
ActiveSheet.Outline.ShowLevels ColumnLevels:=2
Columns("K:P").Columns.UnGroup
Columns("L:R").Columns.Group
ActiveSheet.Outline.ShowLevels ColumnLevels:=1
End Sub
Thanks.