How to privet printing empty pages ?

ahmedismailfourtex

Board Regular
Joined
Apr 28, 2015
Messages
124
Hello,
when i set page title to print each page then i found in printing preview it need to print empty pages also, one more thing, it didn't include new rows in the printing (i.e. it didn't increase the no. of pages to cover the new data).
appreciate the help.
Thanks:)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
look at View > Page Break Preview, and drag the blue lines to encompass your data
 
Upvote 0
If you run the code below what happens in your print preview?

Code:
Sub resetit()
Dim xx As Long
xx = ActiveSheet.UsedRange.Rows.Count
ActiveSheet.PageSetup.PrintArea = ""
ActiveSheet.PrintPreview
End Sub
 
Upvote 0
Upvote 0
When I run the code posted all the data in sheet Hangers fits on 3 pages and so there is nothing to print past page 3 but I can't see why it doesn't come out in the print preview or an actual print.

I will play around with it.
 
Last edited:
Upvote 0
is it an issue with the stored last cell used
 
Upvote 0
Still not sure exactly why it is happening but as an easy get around run the macro below.

Code:
Sub resetit()
Dim lc As Long, lr As Long

lc = ActiveSheet.Cells.Find("*", , xlValues, xlPart, xlByColumns, xlPrevious, False).Column
lr = ActiveSheet.Cells.Find("*", , xlValues, xlPart, xlByRows, xlPrevious, False).Row

ActiveSheet.PageSetup.PrintArea = Range(Cells(1, 1), Cells(lr, lc)).Address
ActiveSheet.PrintPreview
End Sub

but put it in a regular module and not a sheet module please.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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