pgleague070104
New Member
- Joined
- Aug 4, 2018
- Messages
- 3
In Excel 2013 -- I have created a worksheet that uses the auto filter function to hide rows (which are full pages when printed) of line items I don’t want to include in the final printout.
In order to get the format to look good when printed, I have to use manual page breaks throughout the worksheet. The sheet includes about 43000 rows which I have broken into 100+ pages (using page breaks)
Also note that I have specified the print area that includes only the columns I want to print. For example, the column that contains the auto filter, is NOT in the print range as I don’t want it showing up on the printout. Note that the columns in the print area do fit in the right/left print margins.
The problem is that when I apply the auto filter and hide rows, excel inserts blank pages for those pages that are hidden/filtered out. If I was printing to a printer I could just remove the blank pages and that would be fine. However, I am needing to print this to a PDF so I can’t have blank pages.
To clarify further, if I say have a 200 page document/worksheet prior to auto filter being applied. After auto filter is applied the document/worksheet is down to 120 pages on the screen which looks great. However, when I print it, excel spits out the 120 pages with text along with 80 blank pages in place of the pages are that are filtered out/hidden.
I cannot remove the hard page breaks as this is the formatting necessary should information be on the page for a certain month. Number of pages used changes every month.
I have searched the web for a macro that would print only visible pages on a sheet but have not been able to find one.
Any ideas would be much appreciated.
Thanks
In order to get the format to look good when printed, I have to use manual page breaks throughout the worksheet. The sheet includes about 43000 rows which I have broken into 100+ pages (using page breaks)
Also note that I have specified the print area that includes only the columns I want to print. For example, the column that contains the auto filter, is NOT in the print range as I don’t want it showing up on the printout. Note that the columns in the print area do fit in the right/left print margins.
The problem is that when I apply the auto filter and hide rows, excel inserts blank pages for those pages that are hidden/filtered out. If I was printing to a printer I could just remove the blank pages and that would be fine. However, I am needing to print this to a PDF so I can’t have blank pages.
To clarify further, if I say have a 200 page document/worksheet prior to auto filter being applied. After auto filter is applied the document/worksheet is down to 120 pages on the screen which looks great. However, when I print it, excel spits out the 120 pages with text along with 80 blank pages in place of the pages are that are filtered out/hidden.
I cannot remove the hard page breaks as this is the formatting necessary should information be on the page for a certain month. Number of pages used changes every month.
I have searched the web for a macro that would print only visible pages on a sheet but have not been able to find one.
Any ideas would be much appreciated.
Thanks
Last edited by a moderator: