Hiding rows and printing only 1 sheet

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
954
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a large worksheet of roughly 500 rows, with totals at the bottom of the worksheet . Often times, I will only use a handful of rows, in which case I would like to hide the remaining 400+ rows. I would like to print only the 1 page INCLUDING the totals row but for some reason I can not print this in less than 2 pages. A page break is always created at the bottom of where I hide my rows, leaving the second page to show only the total amounts. Is there any solution to this?

Many thanks in advance!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Are you having trouble figuring out how to hide the unused rows?
If you hide the rows, is it still printing to multiple sheets?
How many rows of data do you have shown?

It may be helpful to see what your data looks like.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
@thewiseguy Try the 'Page Break Preview' icon at the bottom right of the excel window, see if you can delete the offending page break in there.
 
Upvote 0
Could you copy the visible cells to a temp sheet with code and then print it?
Although that should not be required if you attack the problem properly.
VBA Code:
Worksheets(1).ResetAllPageBreaks
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top