using your posted workbook....
Put this VBA code in your module:
Sub ToggleColView()
Dim wks As Worksheet
Dim shpOptHide As Shape
Dim shpOptShow As Shape
Set wks = Worksheets("Refrigeration Units")
Set shpOptHide = wks.Shapes("Option Button 8")
Set shpOptShow = wks.Shapes("Option Button 9")
If shpOptHide.ControlFormat.Value = xlOn Then
' MsgBox "You clicked: Hide"
wks.Outline.ShowLevels ColumnLevels:=1
ElseIf shpOptShow.ControlFormat.Value = xlOn Then
' MsgBox "You clicked: Show"
wks.Outline.ShowLevels ColumnLevels:=8
End If
End Sub
That code toggles the display/hide of the grouped columns.
Assign both option buttons to that macro.
Is that something you can work with?
Bookmarks