panorama414
New Member
- Joined
- Aug 31, 2011
- Messages
- 1
I have a spreadsheet that contains the following groupings and columns:
----Jan--------- Feb---------Mar-------- Q1
Act For Var Act For Var Act For Var Act For Var
I have 5 buttons (Show/Hide Target & Variance, Show/Hide Q1, Show/Hide Q2, Show/Hide Q3, and Show/Hide Q4)
I need help in writing a macro for the Show/Hide Target & Variance button. When I click on the button, I want it to check to see whether the Target and Variance columns are displaying. If it is, then collapse those columns. If it is not, then display those columns. The macro needs to check whether the monthly columns or the quarter columns are showing and hide/unhide the target and variance columns accordingly.
- January thru December groupings of 3 columns (Actuals, Forecast, and Variance) per month
- Quarter 1 thru Quarter 4 groupings of 3 columns (Actuals, Forecast, and Variance) per quarter
- The Quarter columns will only display when the corresponding monthly columns are hidden (i.e. Quarter 1 columns will display when January, February, March columns are collapsed, Quarter 2 columns will display when April, May, and June columns are collapsed, etc.).
----Jan--------- Feb---------Mar-------- Q1
Act For Var Act For Var Act For Var Act For Var
I have 5 buttons (Show/Hide Target & Variance, Show/Hide Q1, Show/Hide Q2, Show/Hide Q3, and Show/Hide Q4)
I need help in writing a macro for the Show/Hide Target & Variance button. When I click on the button, I want it to check to see whether the Target and Variance columns are displaying. If it is, then collapse those columns. If it is not, then display those columns. The macro needs to check whether the monthly columns or the quarter columns are showing and hide/unhide the target and variance columns accordingly.
Last edited: