I managed to put together a macro that can group columns based on the cell's selection. I have it based on every month... but I don't know how to make it look compact. Here's what it currently looks like ( just shortened a bit for your sake, I'm not listing every month... )
Each time a month progresses, the Columns portion shrinks by one column on the left. The months sequence up until January-11 - Februrary-12 is left out as I will just have everything shown and ungrouped by that point. We can work with numbers like 1, 2, 3... instead of March-01 and April-02 for simplicity's sake.
It.. it works as is, but it's not something I would want to look at. I tried to search a while for something to fix this, maybe I'm using the wrong keywords?
Code:
Dim ws As Worksheet
If ActiveCell.Value = "March-01" Then
For Each ws In Worksheets
ws.Select
Columns("E:O").Group
Columns("T:AD").Group
Columns("AJ:AT").Group
Next ws
End If
If ActiveCell.Value = "April-02" Then
For Each ws In Worksheets
ws.Select
Columns("F:O").Group
Columns("U:AD").Group
Columns("AK:AT").Group
Next ws
End If
Each time a month progresses, the Columns portion shrinks by one column on the left. The months sequence up until January-11 - Februrary-12 is left out as I will just have everything shown and ungrouped by that point. We can work with numbers like 1, 2, 3... instead of March-01 and April-02 for simplicity's sake.
It.. it works as is, but it's not something I would want to look at. I tried to search a while for something to fix this, maybe I'm using the wrong keywords?