Quick Printing Sheet only with cells containing text ? (not formulas)

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
i have a sheet which has on average 2-3 pages of content, but i have a formula which goes down to E4000 for when i need it

Now when i try print it includes all the pages with the formula also, in my case 86 pages when i only need 3.

Is there a way to quickprint only pages with text ?

much appreciated
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You are printing pages only with text..!

First, if you have a formula going that far down "for when you need it", there's usually a better way of doing it. I sometimes have VBA control where formulas sit for me
Second, if we're using VBA anyway, we could make a quick routine to change the print area instead

this code will set the print area to go to the end of column A, and cover columns A:C:
Code:
Sub setPA()
Dim i As Long: i = Range("a999999").End(xlUp).Row
Dim strPA As String: strPA = "$A$1:$C$" & i
ActiveSheet.PageSetup.PrintArea = strPA
End Sub
Amend to suit your needs, and you could also link it to the workbook "before print" event so it runs automatically
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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