Print range & a different sheet as a single print job.

bhsoundman

New Member
Joined
Jul 17, 2010
Messages
24
Office Version
  1. 365
Platform
  1. MacOS
I'm trying to combine a print job of defined range of cells on one sheet with an entire other sheet. I've gotten to a point where a single macro prints the defined range, then once that print job is done, it prints the other worksheet. I just want to combine them so I can print to a single pdf file. I can already print an array of sheets, but the first area is not a sheet.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Programmatically hide the cells that do not need to be printed so all you will have left is the "defined range of cells".

What works also is to have the font white for what should not show up when printed.
 
Upvote 0
Code:
Sub Test()
Dim fRange As Range
    Set fRange = Application.InputBox(Prompt:="Select the Rows you don't want printed with the mouse", Title:="Selection required", Type:=8)
        fRange.EntireRow.Hidden = True
    ActiveSheet.PrintPreview
End Sub

Hold down the Ctrl key if you need to select non contiguous rows
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

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