Tennisguuy
Well-known Member
- Joined
- Oct 17, 2007
- Messages
- 564
- Office Version
- 2016
- Platform
- Windows
I have a spreadsheet where I track by month some data. The data is displayed in cells A5:AA178. There are times that I want to only see certain months. The spreadsheet tracks the data by month and cumulative.
I am not good with writing macros and I was going to use the macro recorder in excel 10 to hide the sections that I don't want to see. For example, if I only want to see the data to March I would want to hide the rows from April to Dec. Then have it set the print range if I want to print it. I was going to create macro buttons from the macros I recorded to click on the button for the months that I only wanted to see.
Then I wondered if there was an easier way to do it.
I was going to put the macro button at the top of the sheet from A1:B3. As I mentioned above the data starts in A5:AA178
The months are displayed in the following sections
Jan A7:A19
Feb A7:AA34 the data is cumulative so when I display Feb I want to see Jan to Feb and so forth which is why it start with A7
March A7:AA49
April A7:AA64
May A7:AA78 I have a page break inserted on line 78
June A7:AA93
July A7:AA107
Aug A7:AA121
Sept A7:AA135
Oct A7:AA148 I have a page break inserted on line 148
Nov A7:AA163
Dec A7:AA178
I am not good with writing macros and I was going to use the macro recorder in excel 10 to hide the sections that I don't want to see. For example, if I only want to see the data to March I would want to hide the rows from April to Dec. Then have it set the print range if I want to print it. I was going to create macro buttons from the macros I recorded to click on the button for the months that I only wanted to see.
Then I wondered if there was an easier way to do it.
I was going to put the macro button at the top of the sheet from A1:B3. As I mentioned above the data starts in A5:AA178
The months are displayed in the following sections
Jan A7:A19
Feb A7:AA34 the data is cumulative so when I display Feb I want to see Jan to Feb and so forth which is why it start with A7
March A7:AA49
April A7:AA64
May A7:AA78 I have a page break inserted on line 78
June A7:AA93
July A7:AA107
Aug A7:AA121
Sept A7:AA135
Oct A7:AA148 I have a page break inserted on line 148
Nov A7:AA163
Dec A7:AA178